Blogger Information
Blog 13
fans 1
comment 0
visits 8518
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
20190220-php基础之mysql数据库
蛋炒饭的博客
Original
701 people have browsed it

作业内容,建立一个10个以上字段的数据表

实例

CREATE TABLE `sun` (

  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户id',

  `name` varchar(20) NOT NULL COMMENT '用户名',

  `password` char(32) NOT NULL COMMENT '用户密码',

  `age` smallint(6) NOT NULL COMMENT '年龄',

  `birthday` varchar(11) NOT NULL COMMENT '生日',

  `salary` smallint(6) NOT NULL COMMENT '工资',

  `height` tinyint(4) DEFAULT NULL COMMENT '身高',

  `weight` tinyint(4) DEFAULT NULL COMMENT '体重',

  `address` varchar(150) DEFAULT NULL COMMENT '地址',

  `hobby` varchar(150) DEFAULT NULL COMMENT '爱好',

  `job` varchar(30) DEFAULT NULL COMMENT '工作',

  PRIMARY KEY (`id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8;

运行实例 »

点击 "运行实例" 按钮查看在线实例


Correction status:qualified

Teacher's comments:数据库源码创建的不错。
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post