【发布时间】:2011-05-05 12:40:47
【问题描述】:
嗨,我的存储过程中有这样的东西,
SET @SQl = 'Some query' --this query return only a cell the type int
SET @VAR = exec(@SQL) --the varaible @var it's local and the type int
如何获取查询的返回值并设置为变量,这可能吗?或者我在做什么是错的???
感谢您的帮助
【问题讨论】:
标签: sql-server-2005 tsql stored-procedures