您的位置:首页 > 数据库 > MySQL

mysql:创建数据表

2016-05-30 00:00 423 查看
摘要: mysql创建数据表

create table命令用来创建数据表。

命令:create table <表名> (<字段名1> <类型1> [,..<字段名n> <类型n>]);

例如:

mysql> create table t_table(
> id int(4) not null primary key auto_increment,
> name char(20) not null,
> sex int(4) not null default '0'
> );
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  mysql创建数据表