Home >Database >Mysql Tutorial >在Mysql上创建数据表实例代码_MySQL

在Mysql上创建数据表实例代码_MySQL

WBOY
WBOYOriginal
2016-06-01 13:18:081188browse

bitsCN.com
create table shujubiao(
id int primary key auto_increment, 指定为i整形
name varchar(32) not null, 指定为不固定长度,最大为32为字符,不能为空
password varchar(64) not null, 指定为不固定长度,最大为64为字符,不能为空
email varchar(128) not null, 指定为不固定长度,最大为128为字符,不能为空
age tinyint unsigned not null 指定为小整型
)
bitsCN.com

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn