标签:out exe sele -- count char exec 字符 输出
use pubs go declare @count int declare @sql nvarchar(4000) set @sql=‘select @count=count(*) from titles‘ exec sp_executesql @sql,N‘@count int output‘,@count output --请注意字符串前一定要加N select @count as [行数] go
标签:out exe sele -- count char exec 字符 输出
原文地址:https://www.cnblogs.com/liangyuwen/p/13053562.html