delete from stu a
where rowid not in (select max(rowid)
from stu b
where a.name = b.name
and a.stno < b.stno);
为什么select max(rowid) 会选出学号最大的?
rowid 和stno有关联吗
where
a stno< b.stno 应该是一个集合 不应该是select max(b.stno)吗?