疑难问题,高手进来解决,在线等是这样的 如何将查询结果条数赋给一个变量 SQL查询语句该怎么写[解决办法]select @count=count(*) from tablename where ......[解决办法]declare @int int select @int = count(*) from tablename [解决办法]或 set @count=(select count(*) from tablename where ......)