Blogger Information
Blog 33
fans 1
comment 0
visits 21825
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
mysql基础知识
冰雪琉璃
Original
588 people have browsed it

mysql创建数据表

  1. CREATE TABLE `user`(
  2. //创建里面的内容并且设置里面的类型
  3. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  4. `uname` varchar(20) COLLATE utf8mb4_unicode_ci NO NULL COMMENT '用户名',
  5. `pwd` varchar(20) COLLATE utf8mb4_unicode_ci NO NULL ,
  6. `gender` tinyint(1) unsigned NOT NULL COMMENT' 1男0女',
  7. `create_time` int(10) unsigned NOT NULL,
  8. `updata_time` timeStamp NOT NULL DEFAULT current_timestamp() ON UPDATE;
  9. current_timestamp(),
  10. PRIMARY KEY(`id`),
  11. UNIQUE KEY `uname`(`uname`)
  12. )
Correcting teacher:灭绝师太灭绝师太

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