/*! MySQL-specific code */ : Comments : Introduction MySQL TUTORIALS


MySQL TUTORIALS » Introduction » Comments »

 

/*! MySQL-specific code */


MySQL Server parses and executes the code within the comment.

Other SQL servers will ignore the extensions.

If you add a version number after the ! character, the syntax within the comment is executed only if the MySQL version is greater than or equal to the specified version number.

mysql>
mysql>
mysql> CREATE /*!32302 TEMPORARY */ TABLE t (a INT);
Query OK, rows affected (0.02 sec)

mysql>
mysql> desc t;
+-------+---------+------+-----+---------+-------+
| Field | Type    | Null | Key | Default | Extra |
+-------+---------+------+-----+---------+-------+
| a     | int(11| YES  |     | NULL    |       |
+-------+---------+------+-----+---------+-------+
row in set (0.00 sec)

mysql>
mysql>
mysql> drop table t;
Query OK, rows affected (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Introduction
» Comments