我爱Aspx >> C#.Net >> bbs的数据结构和存储过程(三)_ASP实例return (-1)
/*求开始rootID*/
set @intRowCount = (@a_intPageNo - 1) * @a_intPageSize + 1
/*限制条数*/
set rowcount @intRowCount
select @intBeginID = rootid from bbs where posted=1 and forumid=@a_intForumID
order by id desc
/*结束rootID*/
set @intRowCount = @a_intPageNo * @a_intPageSize
/*限制条数*/
set rowcount @intRowCount
select @intEndID = rootid from bbs where posted=1 and forumid=@a_intForumID
order by id desc
/*恢复系统变量*/
set rowcount 0
set nocount off
select a.id , a.layer , a.forumid , a.subject , a.faceid , a.hits , a.time , a.UserID , a.fatherid , a.rootid ,
'Bytes' = datalength(a.content) , b.UserName , b.Email , b.HomePage , b.Signature , b.Point
from bbs as a join BBSUser as b on a.UserID = b.ID
where posted=1 and Forumid=@a_intForumID and a.rootid between @intEndID and @intBeginID
order by a.rootid desc , a.ordernum desc
return(@@rowcount)
--select @@rowcount
go
select id , rootid , fatherid , forumid , posted from bbs
up_getpostedtopiclist 3 ,1 , 20
/*************************************************************************/
/* */
/* procedure : up_GetTopic */
/* */
/* Description: 取贴子 */
/* */
/* Parameters: @a_intTopicID : 贴子id */
/* */
/* Use table: bbs */
/* */
/* Author: bigeagle@163.net */
Ҷƪл˵?
存储过程使用大全_ASP技巧[04-28]
金额阿拉伯数字转换为中文的存储..[04-28]
一个分页存储过程_ASP技巧[04-28]
用存储过程实现ASP对数据库访问_..[04-28]
几例在ASP存储过程的使用方法_AS..[04-28]
存储过程入门与提高_数据库教程[04-28]
存储过程介绍及asp+存储过程的使..[04-28]
在 Access 中使用“存储过程”_A..[04-28]
使用SQLSERVER的扩展存储过程实现..[04-28]
内嵌或嵌入SQL和存储过程之对比_..[04-28]
存储过程使用大全_ASP技巧[04-28]
金额阿拉伯数字转换为中文的存储..[04-28]
一个分页存储过程_ASP技巧[04-28]
用存储过程实现ASP对数据库访问_..[04-28]
几例在ASP存储过程的使用方法_AS..[04-28]
存储过程入门与提高_数据库教程[04-28]
存储过程介绍及asp+存储过程的使..[04-28]
用XML和SQL 2000来管理存储过程调..[04-28]
在 Access 中使用“存储过程”_A..[04-28]
使用SQLSERVER的扩展存储过程实现..[04-28]