¡¾·±ÌåÖÐÎÄ¡¿
¡¾ÉèΪÊ×Ò³¡¿
¡¾¼ÓÈëÊղء¿
µ±Ç°Î»ÖãºASP¼¼ÊõÊ×Ò³ >> ASP»ù´¡ >> ALL IN ONE:ÀûÓô洢¹ý³ÌʵÏÖBBSÊ÷ÐνṹµÄ´æ´¢¼°Óлظ´email֪ͨ¹¦ÄܵÄʵÏÖ£¨Èý£¬Íê£

ALL IN ONE:ÀûÓô洢¹ý³ÌʵÏÖBBSÊ÷ÐνṹµÄ´æ´¢¼°Óлظ´email֪ͨ¹¦ÄܵÄʵÏÖ£¨Èý£¬Íê£

2006-04-15 08:00:00  ×÷Õߣº  À´Ô´£º»¥ÁªÍø  ä¯ÀÀ´ÎÊý£º0  ÎÄ×Ö´óС£º¡¾´ó¡¿¡¾ÖС¿¡¾Ð¡¡¿
¼ò½é£ºÏÂÃæ¶ÁÈ¡¼Í¼µÄ´æ´¢¹ý³Ì£º if exists(select * from sysobjects where ID = object_id("up_GetTopic")) drop proc up_GetTopic go create proc up_GetTopic @a_intID int as declare @m_intNextID int , @m_intP...

ÏÂÃæ¶ÁÈ¡¼Í¼µÄ´æ´¢¹ý³Ì£º

if exists(select * from sysobjects where ID = object_id("up_GetTopic"))

drop proc up_GetTopic

go

create proc up_GetTopic @a_intID int

as

declare @m_intNextID int , @m_intProvID int , @m_intRootID int

declare @m_intLayer int , @m_intForumID int

select @m_intRootID = RootID , @m_intLayer = Layer , @m_intForumID = ForumID

From BBS where ID = @a_intID --ÇóÖ¸¶¨¼Ç¼RootID

if @@rowcount = 0 --Èç¹ûûÓÐÑ¡¶¨¼Í¼£¬ÔòÍ˳ö

return 0

select a.ID , a.Layer , a.ForumID , b.UserName , b.Email , b.ICQ , b.HomePage ,

a.Title , a.Content , a.PostTime , a.FaceID , a.Hits

from BBS as a

join BBSUser as b

on a.UserID = b.ID

where RootID = @m_intRootID and Layer >= @m_intLayer

order by RootID , OrderNum

/*¸üеã»÷Êý*/

update BBS Set Hits = Hits + 1 where ID = @a_intID

go

ÔðÈα༭£ºadmin
±¾ÎÄÒýÓõØÖ·£º http://www.3pcode.com/asp/2006/04/81069.htm
Ïà¹ØÎÄÕÂ