我用mysql。这是我的sql
select *
from releases
where id >
(
select min(id) as x
from releases
where released > "2011-12-01"
)
limit 0,30
这是对的。但我想找到 id 在范围内(不仅大于)的项目,如下所示:
select *
from releases
where id >
((
select min(id) as x , max(id) as y
from releases
where released > "2011-12-01"
) as D ) D.x and id < D.y
limit 0,30