我还真是没有什么好的办法,就是把上次查询的结果存到临时表中 然后在临时表中查询 Insert Into #Temp SELECT * FROM Table1 然后在#Temp的基础上查询
感谢:angle097113(深思不解) 请教 RockEx(石头_),能否细说?
select * from yourtable where (select a from yourtable where sadf=d)
用临时表,但angle097113(深思不解)大侠用的方法不妥(不好意思), 可以这样,先"select * into #temptable from [tablename] where ..."再用 select * from #temptable where...."即可.
用视图: create view xx as select col1,col2 from tt where aa>100select col1 from xx where aa>200select col2 form xx where aa>150建议学习关于视图的应用!和索引一样能提高查询性能,而且不占物理空间!
然后在临时表中查询 Insert Into #Temp SELECT * FROM Table1
然后在#Temp的基础上查询
可以这样,先"select * into #temptable from [tablename] where ..."再用
select * from #temptable where...."即可.
create view xx as select col1,col2 from tt where aa>100select col1 from xx where aa>200select col2 form xx where aa>150建议学习关于视图的应用!和索引一样能提高查询性能,而且不占物理空间!
请教: jingbianfc(:『静⊙变』:) :视在DELPHI里面具体是哪个控件?我怎么从没发现过?
我想这个问题也是大家关心的问题,盼复!