摘要:        
一.查询CREATE????? PROC sp_GetBBSPost?@board_id int/*=====================================================功能:?得到该版块的所有帖子参数:?@board_id int??:?该版块ID=====================================================*/ASselect *,COALESCE(last_replay_time,send_time)?from bbs_post?where? (sysbulletin = 1)union allSELECT     阅读全文
        
            posted @ 2005-03-26 01:09
meteorcui
阅读(99)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
一.插入时SET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS ON GOALTER? TRIGGER [insertReply] ON [dbo].[BBS_Reply] FOR INSERTASdeclare @post_id? intselect @post_id = post_id from inserted--update BBS_Post set replay_times=replay_times+1 where post_id = @post_idGOSET QUOTED_IDENTIFIER OFF GOSET ANSI_NULLS ON GO?    阅读全文
        
            posted @ 2005-03-26 01:06
meteorcui
阅读(348)
评论(0)
推荐(0)
        
        
                    
                
浙公网安备 33010602011771号