当前位置:Gxlcms > mysql > 从动态SQL中返回值_MySQL

从动态SQL中返回值_MySQL

时间:2021-07-01 10:21:17 帮助过:2人阅读

declare @TransactorID int
set @TransactorID=0
print(@TransactorID)
--exec sp_executesql N'select @TransactorID=68 ',N'@TransactorID int ',@TransactorID


exec sp_executesql N'select @TransactorID=5 ',N'@TransactorID int out ',@TransactorID out
print(@TransactorID)

人气教程排行