[Quote=引用 5 楼 ks_reny 的回复:]
引用 4 楼 lunhuifengzheng 的回复:
引用 2 楼 ks_reny 的回复:
SQL code
select * from test t where not exists(select 1 from test where k=t.k and c>t.c)
能解释下吗,小弟初学不大懂 select * from test t t是什么,还有select 1 from test where k=t.k and c>t.c
[Quote=引用 5 楼 ks_reny 的回复:]
引用 4 楼 lunhuifengzheng 的回复:
引用 2 楼 ks_reny 的回复:
SQL code
select * from test t where not exists(select 1 from test where k=t.k and c>t.c)
能解释下吗,小弟初学不大懂 select * from test t t是什么,还有select 1 from test where k=t.k and c>t.c