怎样在存储过程中返回记录的条数啊。 你用SET @QQ=SELECT COUNT(*) FROM。然后再赋值返回吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 执行完后用select @@ROWCOUNT create procedure Proc1@Rowcounts intASselect * from yourtableset @RowCounts = @@RowCountgo create procedure Proc1@Rowcounts int outputASselect * from yourtableset @RowCounts = @@RowCountgo create procedure Proc1@Rowcounts int outputASselect @Rowcounts=count(*) from yourtable go 调用这样就行declare @rowcounts intexec Proc1 @rowcounts outputprint @rowcounts 文件上传到FTP的存储过程. 有关与无限分类的很简单问题。 SQL有没有把指定文件夹下图片储存到数据表中语句? 麻烦高手帮我解决下这个问题 关于一个SELECT语句 请帮助优化一个视图 简单问题,求教 本地SQLSERVER 连接远程SQL服务器 时返回错误 ‘超时已过期’? 各位大虾救命,请教远程连接设置为windows anth的sqlserver7.0的办法,高分相赠。 问几百万条记录用什么数据库好?用什么开发工具,什么语言 这个 SQL 语句怎么写(如何选择具有相同列的记录) 删除表中重复记录及更新相关表信息
select @@ROWCOUNT
@Rowcounts int
ASselect * from yourtable
set @RowCounts = @@RowCount
go
@Rowcounts int output
ASselect * from yourtable
set @RowCounts = @@RowCount
go
@Rowcounts int output
ASselect @Rowcounts=count(*) from yourtable
go
declare @rowcounts int
exec Proc1 @rowcounts output
print @rowcounts