ALTERPROCEDURE[dbo].[novel_default] AS selecttop2*from novel_commend where mark=1 selecttop6[name],topicid,title,pic,intro from novel_topic,novel_board where pic<>''and novel_topic.boardid=novel_board.boardid and hidden=0orderby topicid desc selecttop40[name],novel_topic.topicid as topicid,title,newchapter,author,updatetime from novel_topic,novel_board where novel_topic.boardid=novel_board.boardid and hidden=0orderby updatetime desc select topicid,title,amount into #order_day from novel_order wheredatediff(day, dateadd(day, -1, getdate()), times)>=0 selecttop19 topicid,title,sum(amount) as amount from #order_day groupby topicid,title orderbysum(amount) desc select topicid,title,amount into #order_week from novel_order wheredatediff(day, dateadd(day, -7, getdate()), times)>=0 selecttop19 topicid,title,sum(amount) as amount from #order_week groupby topicid,title orderbysum(amount) desc selecttop20 topicid,title,hits from novel_topic orderby hits desc selecttop16 topicid,title from novel_commend where mark=0orderby commendid desc selecttop16 topicid,title from novel_topic orderby commend desc selecttop16 topicid,title from novel_topic where hidden=0orderby addtime desc