在‘数据库脚本’中,看见 /*!32312 IF NOT EXISTS*/ ,记录下意思

在看‘数据库脚本’的时候,发现一些没有看见过的语句,注解了其中一条。

 

CREATE DATABASE /*!32312 IF NOT EXISTS*/`tour` /*!40100 DEFAULT CHARACTER SET utf8 */;

USE `tour`;s

/*Table structure for table `tour_menu` */

DROP TABLE IF EXISTS `tour_menu`;

CREATE TABLE `tour_menu` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) DEFAULT NULL,
  `parentid` bigint(20) DEFAULT NULL,
  `mrl` varchar(255) DEFAULT NULL,
  `param` varchar(255) DEFAULT NULL,
  `disporder` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;

 

 

 

里面出现了 这句话,表示:

That's a hint to MySQL that the command only works in versions 3.23.12
or later.

 

 

出处:http://lists.mysql.com/mysql/114158

posted on 2012-01-06 19:10  foo_dodo  阅读(1680)  评论(0)    收藏  举报