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

请问这段 sql 语句是怎么执行的?

  •  
  •   lanyi96 · May 30, 2018 · 4218 views
    This topic created in 2989 days ago, the information mentioned may be changed or developed.

    6 replies    2018-05-31 10:15:02 +08:00
    tetora
        1
    tetora  
       May 31, 2018
    1 (/*!50000union/*!50000/*!<select*/) 括号里的应该是注释 ~1,2>
    所以应该是 select * from test where id =1~1,2;
    猜的,错了别骂
    WordTian
        2
    WordTian  
       May 31, 2018 via Android
    括号里并不是注释。。。

    是版本号小于 50000 的不执行,大于的执行其内部的语句

    有个学名我忘了叫啥了
    msg7086
        4
    msg7086  
       May 31, 2018
    SELECT * FROM test WHERE id = 1
    UNION
    SELECT ~1, 2
    ThirdFlame
        5
    ThirdFlame  
       May 31, 2018
    4 楼正解 。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5803 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 02:17 · PVG 10:17 · LAX 19:17 · JFK 22:17
    ♥ Do have faith in what you're doing.