ASP中如何调用SQL中间数据

2024年11月16日 06:01
有3个网友回答
网友(1):

这个 直衫含接改sql 语句就能橘塌大实现了。圆竖。用子查询前三十 not in 子查询前三十
select top 30 * from musiclist where not in (select top 30 * from musiclist where IsGood=1 order by ID desc) and IsGood=1 order by ID desc

网友(2):

只把旁缺姿运绝sql="select top 30 * from musiclist where IsGood=1 order by ID desc"
改扮槐成: sql="select top 30 * from musiclist where IsGood=1 and id not in(select top 30 id from musiclist where IsGood=1 order by ID desc) order by ID desc"

网友(3):

select top 30 * from musiclist wher id in (select top 60 id from musiclist where IsGood=1 order by ID desc) order by id desc