This functional add on mysql3.22.7 version. use the /*! ... */ syntax to hide MySQL-specific keywords when you write portable code. MySQL will parse the code inside the comments as if the surrounding /*! and */ comment characters didn't exist.

解决方案 »

  1.   

    还有更有意思的呢!
    mysql> select version();
    +-----------+
    | version() |
    +-----------+
    | 4.0.12-nt |
    +-----------+
    1 row in set (0.00 sec)mysql> select /*!40012 1*/ from author;
    +---+
    | 1 |
    +---+
    | 1 |
    | 1 |
    | 1 |
    | 1 |
    | 1 |
    | 1 |
    | 1 |
    +---+
    7 rows in set (0.00 sec)mysql> select /*!40013 1*/ from author;
    ERROR 1064: You have an error in your SQL syntax.  Check the manual that corresp
    onds to your MySQL server version for the right syntax to use near 'from author'
     at line 1
    当“/*!”后面的数字大于版本号的时候MySQL就不会处理注释符里的内容。