这句数据库sql语句如何用exists关键字去写?

2025-05-23 02:26:42
推荐回答(1个)
回答1:

delete from student a
 where not exists (select 1
          from student b
         group by b.stuno, b.stuname, b.course, b.score
        having min(b.id) = a.id);