一个存储过程,多个select语句,形成多个表读取数据    public static DataSet SqlNormal_(string storename)
    }

sql
一个存储过程,多个select语句,形成多个表读取数据ALTER PROCEDURE [dbo].[novel_default]
一个存储过程,多个select语句,形成多个表读取数据
AS
一个存储过程,多个select语句,形成多个表读取数据    
select top 2 * from novel_commend where mark=1
一个存储过程,多个select语句,形成多个表读取数据    
select top 6 [name],topicid,title,pic,intro from novel_topic,novel_board where pic<>'' and novel_topic.boardid=novel_board.boardid and hidden=0 order by topicid desc
一个存储过程,多个select语句,形成多个表读取数据    
select top 40 [name],novel_topic.topicid as topicid,title,newchapter,author,updatetime from novel_topic,novel_board where novel_topic.boardid=novel_board.boardid and hidden=0 order by updatetime desc
一个存储过程,多个select语句,形成多个表读取数据    
select topicid,title,amount into #order_day from novel_order where datediff(daydateadd(day-1getdate()), times)>=0
一个存储过程,多个select语句,形成多个表读取数据    
select top 19 topicid,title,sum(amount) as amount from #order_day group by topicid,title order by sum(amount) desc
一个存储过程,多个select语句,形成多个表读取数据    
select topicid,title,amount into #order_week from novel_order  where datediff(daydateadd(day-7getdate()), times)>=0
一个存储过程,多个select语句,形成多个表读取数据    
select top 19 topicid,title,sum(amount) as amount from #order_week group by topicid,title order by sum(amount) desc
一个存储过程,多个select语句,形成多个表读取数据    
select top 20  topicid,title,hits from novel_topic order by hits desc
一个存储过程,多个select语句,形成多个表读取数据    
select top 16 topicid,title from novel_commend where mark=0 order by commendid desc
一个存储过程,多个select语句,形成多个表读取数据    
select top 16 topicid,title from novel_topic order by commend desc
一个存储过程,多个select语句,形成多个表读取数据    
select top 16 topicid,title from novel_topic where hidden=0 order by addtime desc

相关文章: