1:添加临时表
select * into #temp from MDS_Hr_ObjRelation where ObjType1='o' and ObjType2='o' and Deleted=0;
2:查询临时表
select * from #temp
3:删除临时表释放资源
drop table #temp
1:添加临时表
select * into #temp from MDS_Hr_ObjRelation where ObjType1='o' and ObjType2='o' and Deleted=0;
2:查询临时表
select * from #temp
3:删除临时表释放资源
drop table #temp