CREATE DATABASE `test`;
USE `test`;
# 如果数据库已经存在,就将其删除
DROP TABLE IF EXISTS `person`;
CREATE TABLE `person` (
`id` INT NOT NULL AUTO_INCREMENT COMMENT '人物id',
`name` VARCHAR(30) NOT NULL COMMENT '姓名',
`gender` INT NOT NULL COMMENT '性别',
`book` VARCHAR(100) NOT NULL COMMENT '出处',
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=utf8mb4;
SELECT * FROM person;