我寫了一個存盤程序,在程序中需要執行動態SQL,并且要將SQL執行結果存盤到一個變數中后續使用,請問如何解決這個問題?
uj5u.com熱心網友回復:
declare @cmdstr varchar(100)create table cmdresult(...)
select @cmdstr='insert cmdresult select .....'
execute(@cmdstr)
select * from cmdresult
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/48438.html
標籤:Sybase
