sql 語句
create table if not exists student(
`id` INT AUTO_INCREMENT PRIMARY KEY,
`name` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '姓名',
`age` TINYINT UNSIGNED not null DEFAULT 0 COMMENT '年齡',
`sex` TINYINT UNSIGNED not null DEFAULT 10 COMMENT '性別',
`created_at` INT not null DEFAULT 0 COMMENT '新增時間',
`updated_at` INT not null DEFAULT 0 COMMENT '修改時間'
)ENGINE=INNODB DEFAULT CHARSET=UTF8 AUTO_INCREMENT=1001 COMMENT='學生表';
2018-08-16
2018-08-16
create table if not exists student(
`id` INT AUTO_INCREMENT PRIMARY KEY,
`name` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '姓名',
`age` TINYINT UNSIGNED not null DEFAULT 0 COMMENT '年齡',
`sex` TINYINT UNSIGNED not null DEFAULT 10 COMMENT '性別',
`created_at` INT not null DEFAULT 0 COMMENT '新增時間',
`updated_at` INT not null DEFAULT 0 COMMENT '修改時間'
)ENGINE=INNODB DEFAULT CHARSET=UTF8 AUTO_INCREMENT=1001 COMMENT='學生表';