创建表
create table if not exists 表名(
id int(3) primary key auto_increment,#主键,自动增长,从1开始
name varchar(8) unique default 'chicai',#唯一,设置默认值 
password varchar(20) not null #不能为空
);#创建表

首页 我的博客
粤ICP备17103704号