sql01

来源:互联网 发布:python 加减乘除 编辑:程序博客网 时间:2024/05/16 16:15
  • 修改自己表里面重复的数据,只保留一条

create table temp as select id as c
from machine_score where model in ( select model
from machine_score GROUP BY model HAVING count(*) > 1 )
and id not in (select min(id) from machine_score GROUP BY model)