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
git00ll
V2EX  ›  MySQL

mysql distinct 多列情况下,得到的结果是相当于将多列拼接在一起去重吗

  •  
  •   git00ll · Dec 30, 2021 · 2309 views
    This topic created in 1629 days ago, the information mentioned may be changed or developed.

    是不是 约等于将选中的多列按照字符串拼接后去重. 不太理解 distinct 多列背后的逻辑

    2 replies    2021-12-30 14:51:51 +08:00
    Tsukihime
        1
    Tsukihime  
       Dec 30, 2021   ❤️ 1
    In most cases, a DISTINCT clause can be considered as a special case of GROUP BY.

    https://dev.mysql.com/doc/refman/8.0/en/distinct-optimization.html
    breadenglish
        2
    breadenglish  
       Dec 30, 2021   ❤️ 1
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3240 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 12:27 · PVG 20:27 · LAX 05:27 · JFK 08:27
    ♥ Do have faith in what you're doing.