# 创建数据库
create database if not exists db_BigData
default character set gb2312
default collate gb2312_chinese_ci;
# 创建表
create table if not exists db_BigData.stu (
id int auto_increment primary key comment '主键ID',
name varchar(20) comment '姓名',
idnum int unique not null comment '身份证号',
gender int not null comment '1.男 2.女',
phone int comment '手机号',
email varchar(30) unique comment '邮箱',
prof varchar(20) comment '职业',
age int not null comment '年龄'
)comment '学生基本信息表';
use db_BigData;
show tables ;
# 查询表
select * from stu;
# 插入表
insert into stu(n