|
The query conditions are dynamically specified, that is: select field1, field2, field3 into #temp from testtable where 1 = 1 + dynamically pass the stored procedure judgment conditions (such as: and field1 = 2) How can I solve this problem? And then use: select * from #temp but at this time #temp has been invalidated, it is really a headache, please also give pointers to one or two. |
|