标题:还是存储过程
取消只看楼主
tokoyoshi
Rank: 2
等 级:论坛游民
帖 子:99
专家分:67
注 册:2009-10-24
结帖率:87.1%
已结贴  问题点数:20 回复次数:0 
还是存储过程
ALTER proc [dbo].[QuestionInfo_count]
@id int
as
select top 1 *from QuestionInfo where CategoryID=@id order by ReleaseTime desc

我以为这样会返回结果集,结果程序报错,说返回int,怎么让它返回结果集,谢谢
搜索更多相关主题的帖子: where order 
2010-04-14 11:22



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-302946-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.256427 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved