E
esucc
Unregistered / Unconfirmed
GUEST, unregistred user!
我创建了一个过程 create proc p_test(@custid varchar(10))as begin select rdsno,custid,orderno,code,numb,unit into #tmp form ( select * from a left join b on a.code=b.code union all select * from c left join b on a.code=b.code ) as tt where custid=@custid end若这个#TMP表中有十几万条记录,我想在DELPHI中直接操作这个临时表#TMP,当我选择CUSTID=‘A’ ,SELECT * FROM #TMP WHERE CUSTID=‘A’ ,当我选择CUSTID=‘B’,SELECT * FROM #TMP WHERE CUSTID=‘B’,这样操作会比重新打开过程快 qbase.close; qbase.parabyname('custid').asstring:='a'; qbase.open; qbase.close; qbase.parabyname('custid').asstring:='B'; qbase.open;请问如何在DELPHI中取出已在过程产生的临时表#TMP呢?THANKS!