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

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

WBOY
Release: 2016-06-01 13:18:08
Original
1193 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template