日期:2014-05-17 浏览次数:20359 次
select top 5 p_ID from TB04 where P_ID>(select MAX(P_ID) from (select top 5 P_ID from TB04 where P_data7 between '2012-08-01' and '2013-04-12') as tmp)
select top 10 p_id from TB04 where P_data7 between '2012-08-01' and '2013-04-12'
select top 5 p_ID from TB04 where P_ID>(select MAX(P_ID) from (select top 5 P_ID from TB04 where P_data7 between '2012-08-01' and '2013-04-12' and (P_data1 <'10' or P_data1 >'70') ) as tmp)
select top 10 p_id from TB04 where P_data7 between '2012-08-01' and '2013-04-12' and (P_data1 <'10' or P_data1 >'70')