34,576
社区成员
发帖
与我相关
我的任务
分享
select
*
from
tb t
where
content in (select top 1 content from tb where id=t.id order by content )
select * from tb t where content=(select min(content) from tb where id=t.id )
select
*
from
tb t
where
content=(select top 1 content from tb where id=t.id order by content)
select * from tb t where not exists(select 1 from tb where id=t.id and content<t.content)
select
*
from
tb t
where
not exists(select 1 from tb where id=t.id and content<t.content)