会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
scarbean
博客园
首页
新随笔
联系
管理
订阅
2010年11月12日
动态执行sql语句并返回值
摘要: 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)
编辑
公告