ENGINE = INNODB CHARACTER SET utf8 COLLATE utf8_general_ci;
例子:
--用户表--
DROP TABLE IF EXISTS `imooc_user`;
CREATE TABLE `imooc_user`(
`id` int unsigned auto_increment key,
`username` varchar(20) not null unique,
`password` char(32) not null,
`sex` enum("男","女","保密") not null default "保密",
`face` varchar(50) not null,
`regTime` int unsigned not null
)ENGINE = INNODB CHARACTER SET utf8 COLLATE utf8_general_ci;
时间: 2024-11-14 12:38:42