美文网首页
09-30(删除重复邮箱-mysql)

09-30(删除重复邮箱-mysql)

作者: 冰菓_ | 来源:发表于2020-11-19 08:26 被阅读0次
    image.png
    select t2.Id Id
    from Weather t1
    join Weather t2
    on DATEDIFF(t2.RecordDate, t1.RecordDate) = 1
    where t2.Temperature > t1.Temperature
    
    image.png
    delete p1 from (person as p1 left join person as p2 on p1.email = p2.email) where p1.id > p2.id ;
    

    相关文章

      网友评论

          本文标题:09-30(删除重复邮箱-mysql)

          本文链接:https://www.haomeiwen.com/subject/qwvpuktx.html