简单数据库语句记录

创建表

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格式
发布了57 篇原创文章 · 获赞 22 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/Mediary/article/details/102741796