创建表
create table tableName(
`id` int(11) NOT NULL AUTO_INCREMENT,# 字段名称 int类型长度11 不为空 自增长
'name' varchar(18) NOT NULL DEFAULT ,# 字段名称 varcahr类型长度18 不为空
primary key('id')# 主键设置为字段 id
)
ENGINE=InnoDB# 引擎设置为InnoDB
CHARACTER =utf-8;# 字符集使用utf-8格式