摘要: DECLARE @str nvarchar(50)DECLARE @icount INTDECLARE @icnt INTSET @str = 'select @icount = count(1) from test3'EXEC sp_executesql @str,N'@icount int out',@icnt OUTSELECT @icnt AS tt 新建选项卡 阅读全文
posted @ 2010-11-12 16:26 scarbean 阅读(404) 评论(0) 推荐(0) 编辑