Blogger Information
Blog 10
fans 0
comment 0
visits 4919
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
10月18日作业-MYSQL新增表及导出
鬼才哥-秋兜
Original
541 people have browsed it

用户表

  1. SET NAMES utf8mb4;
  2. SET FOREIGN_KEY_CHECKS = 0;
  3. -- ----------------------------
  4. -- Table structure for php_user
  5. -- ----------------------------
  6. DROP TABLE IF EXISTS `php_user`;
  7. CREATE TABLE `php_user` (
  8. `id` int(11) NOT NULL,
  9. `uid` int(11) NULL DEFAULT NULL,
  10. `username` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  11. `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  12. `mobile` char(11) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
  13. PRIMARY KEY (`id`) USING BTREE
  14. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  15. SET FOREIGN_KEY_CHECKS = 1;

商品表

  1. SET NAMES utf8mb4;
  2. SET FOREIGN_KEY_CHECKS = 0;
  3. -- ----------------------------
  4. -- Table structure for php_goods
  5. -- ----------------------------
  6. DROP TABLE IF EXISTS `php_goods`;
  7. CREATE TABLE `php_goods` (
  8. `id` int(11) NOT NULL,
  9. `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  10. `price` decimal(10, 2) NULL DEFAULT NULL,
  11. `content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
  12. PRIMARY KEY (`id`) USING BTREE
  13. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  14. SET FOREIGN_KEY_CHECKS = 1;

订单表

  1. SET NAMES utf8mb4;
  2. SET FOREIGN_KEY_CHECKS = 0;
  3. -- ----------------------------
  4. -- Table structure for php_order
  5. -- ----------------------------
  6. DROP TABLE IF EXISTS `php_order`;
  7. CREATE TABLE `php_order` (
  8. `id` int(11) NOT NULL,
  9. `goods_id` int(11) NULL DEFAULT NULL,
  10. `uid` int(11) NULL DEFAULT NULL,
  11. `pay_price` decimal(10, 2) NULL DEFAULT NULL,
  12. `pay_time` datetime NULL DEFAULT NULL,
  13. PRIMARY KEY (`id`) USING BTREE
  14. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
  15. SET FOREIGN_KEY_CHECKS = 1;
Correcting teacher:PHPzPHPz

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