› MySQL 5.5 Community Server
› MySQL 5.6 Community Server
› Percona Configuration Wizard
› XtraBackup 搭建主从复制
Great Sites on MySQL
› Percona
› MySQL Performance Blog
› Severalnines
推荐管理工具
› Sequel Pro
› phpMyAdmin
推荐书目
› MySQL Cookbook
MySQL 相关项目
› MariaDB
› Drizzle
参考文档
› http://mysql-python.sourceforge.net/MySQLdb.html
b7898585
V2EX  ›  MySQL

mysql 删除重复数据问题求指导下

  •  
  •   b7898585 · Sep 15, 2015 · 2815 views
    This topic created in 4051 days ago, the information mentioned may be changed or developed.
    有一个表 article 中有多个字段,
    其中两个字段 articlename 和 chaptername
    现在想把同 id 主键下 articlename 和 chaptername 都重复的所有都删除掉,只保留 id 最小的那个
    请教下该这么写 mysql 语句
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1326 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 156ms · UTC 16:50 · PVG 00:50 · LAX 09:50 · JFK 12:50
    ♥ Do have faith in what you're doing.