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'
> );
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:删除数据表
- MySql-权限管理
- mysql 松散的索引扫描(Loose index scan)
- MySQL EXPLAIN 详解
- MySQL EXPLAIN 详解-日文
- MySQL分组查询Group By实现原理详解
- 由浅入深探究 MySQL索引结构原理、性能分析与优化(强烈推荐)
- mysql 5.6 gtid复制配置
- Mysql之权限管理
- MySQL 对于千万级的大表要怎么优化?
- MySQL主库主动推送binlog到从库
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
- mysql数据库设计
- MySQL常用SQL整理
- MySQL学习16:多表连接
- MySQL和PostgreSQL数据库安全配置
- mysql定时备份
- MySQL各种日志总结
- 【转载】mysql存储过程详解
- Mysql命令