标签:sql tab mes charset int set create hda ref
http://m.zhizuobiao.com/mysql/mysql-18081600264/
CREATE TABLE `t_baby` (
`baby_id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`nickname` varchar(64) DEFAULT NULL,
`avatar` varchar(64) DEFAULT ‘‘,
`sex` int(2) unsigned NOT NULL DEFAULT ‘0‘ COMMENT ‘0:未知;\\n 1:男;\\n 2:女。‘,
`birthday` datetime NOT NULL,
`creater` varchar(16) DEFAULT ‘‘,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`is_delete` bigint(20) DEFAULT NULL COMMENT ‘0‘,
`updater` varchar(16) DEFAULT NULL,
PRIMARY KEY (`baby_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10000000 DEFAULT CHARSET=utf8mb4;
标签:sql tab mes charset int set create hda ref
原文地址:https://www.cnblogs.com/zengjiao/p/10914376.html