百度首页 | 百度空间
 
查看文章
 
Mssql select top 变量问题
2007年08月24日 星期五 下午 08:22
CREATE PROCEDURE GetArtic
@itemid int,
@totol int

AS
BEGIN
exec('select top '+@totol+' title,fabutime from news where itemid='+@itemid+'order by newsid desc')
END
GO

类别:学习笔记 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请输入下图中的四位验证码,字母不区分大小写。
看不清?
 

     

©2008 Baidu