我爱Aspx >> C#.Net >> bbs的数据结构和存储过程(一)_ASP实例/* */
/* Author: bigeagle@163.net */
/* */
/* Date: 2000/4/17 */
/* */
/* History: */
/* */
/*************************************************************************/
if exists(select * from sysobjects where id = object_id('up_GetPostedForumInfo'))
drop proc up_GetPostedForumInfo
go
create proc up_GetPostedForumInfo @a_intForumID int
as
declare @intTopicCount int
declare @intRootTopicCount int
set nocount on
if not exists(select * from Forum where id=@a_intForumID) return 0
select @intTopicCount = count(*) from bbs where forumid = @a_intForumID and posted=1
select * , 'TopicCount'=@intTopicCount , 'RootTopicCount' = @intTopicCount
from Forum where id = @a_intForumID
set nocount off
go
Ҷƪл˵?
bbs的数据结构和存储过程(二)_..[04-28]
bbs的数据结构和存储过程(三)_..[04-28]
存储过程使用大全_ASP技巧[04-28]
金额阿拉伯数字转换为中文的存储..[04-28]
一个分页存储过程_ASP技巧[04-28]
用存储过程实现ASP对数据库访问_..[04-28]
几例在ASP存储过程的使用方法_AS..[04-28]
存储过程入门与提高_数据库教程[04-28]
存储过程介绍及asp+存储过程的使..[04-28]
在 Access 中使用“存储过程”_A..[04-28]
bbs的数据结构和存储过程(二)_..[04-28]
bbs的数据结构和存储过程(三)_..[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]