摘要:
方案1:(SELECT top 10 * FROM表 where type=3 ) UNION ALL (SELECT top 10 * FROM 表 where type=4 ) UNION ALL (SELECT top 10 * FROM表 where type=5 )方案2:select * from(select *,row_number()over(partition by type order by id desc) as RN from 表 twhere type in (3,4,5))a where rn <=10; 阅读全文
posted @ 2013-10-17 17:00
红鲤鱼与驴与绿鲤鱼
阅读(295)
评论(0)
推荐(0)
浙公网安备 33010602011771号