初始数据库---创建student表

CREATE TABLE `student2`(
 `StudentNo` INT(4) NOT null comment'学号',
 `LoginPwd` VARCHAR(20),
 `Student` VARCHAR(20) comment'学生姓名',
 `Sex` tinyint(1) comment '性别,取值为0或1',
 `GradeId`int(11) comment '年级编号',
 `Phone`VARCHAR(50) not null DEFAULT'' comment'联系电话,允许为空,即可选输入',
 `Address`varchar(255) not null DEFAULT'' comment'地址,允许为空,即可选输入',
 `BornDate`datetime comment '出生时间',
 `Email`VARCHAR(50) not null DEFAULT'' comment'邮箱账号,允许为空,即可选输入',
 `IdentityCard`VARCHAR(18) COMMENT'身份证号'
)
运行:

原文地址:https://www.cnblogs.com/Zhangchuanfeng1/p/10595480.html