激情久久久_欧美视频区_成人av免费_不卡视频一二三区_欧美精品在欧美一区二区少妇_欧美一区二区三区的

服務(wù)器之家:專注于服務(wù)器技術(shù)及軟件下載分享
分類導(dǎo)航

Mysql|Sql Server|Oracle|Redis|MongoDB|PostgreSQL|Sqlite|DB2|mariadb|Access|數(shù)據(jù)庫技術(shù)|

服務(wù)器之家 - 數(shù)據(jù)庫 - Mysql - Mysql刪除重復(fù)的數(shù)據(jù) Mysql數(shù)據(jù)去重復(fù)

Mysql刪除重復(fù)的數(shù)據(jù) Mysql數(shù)據(jù)去重復(fù)

2020-06-20 20:49MYSQL教程網(wǎng) Mysql

這篇文章主要介紹了Mysql刪除重復(fù)的數(shù)據(jù) Mysql數(shù)據(jù)去重復(fù),需要的朋友可以參考下

MySQL數(shù)據(jù)庫中查詢重復(fù)數(shù)據(jù)

select * from employee group by emp_name having count (*)>1;

Mysql  查詢可以刪除的重復(fù)數(shù)據(jù)

select t1.* from employee t1 where (t1.emp_name) in (select t4.emp_name from (select t2.emp_name from employee t2 group by t2.emp_name having count(*)>1) t4) and t1.emp_id not in (select t5.emp_id from (select min(t3.emp_id) as emp_id from employee t3 group by t3.emp_name having count(*)>1) t5);

Mysql  刪除重復(fù)的數(shù)據(jù)

delete t1 from employee t1 where (t1.emp_name) in (select t4.emp_name from (select t2.emp_name from employee t2 group by t2.emp_name having count(*)>1) t4) and t1.emp_id not in (select t5.emp_id from (select min(t3.emp_id) as emp_id from employee t3 group by t3.emp_name having count(*)>1) t5);

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 久久天堂| 国产精品久久久久久久久粉嫩 | 在线免费观看欧美 | 好吊色欧美一区二区三区四区 | 午夜视频大全 | 激情午夜天 | 丰满年轻岳中文字幕一区二区 | 男人天堂新地址 | 欧美日韩手机在线观看 | 好吊色37pao在线观看 | 羞羞网站在线看 | 国产一区二区国产 | av在线免费电影 | 黑人一级片视频 | 99久久电影 | 免费一级欧美 | 日本欧美国产 | 欧美日韩后 | 色老师影院| av免费在线播放网址 | 日韩av有码在线 | 99视频有精品视频高清 | 欧美成人三级大全 | 欧美日本免费一区二区三区 | 国产成人在线看 | 久久色伦理资源站 | 黄色一级片免费在线观看 | 日韩视频1| 一级片在线免费 | 久久久久久久久久亚洲 | 精品国产看高清国产毛片 | 免费看a级片 | av电影网站在线 | 91精品国 | 黄色av片在线观看 | av免费大全 | 久久久三区 | www.av88| 国产精品一区久久久久 | 成人在线视频免费观看 | 国产精品午夜小视频观看 |