-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtb_product.sql
More file actions
40 lines (33 loc) · 1.29 KB
/
tb_product.sql
File metadata and controls
40 lines (33 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
Navicat Premium Data Transfer
Source Server : MYSQL8
Source Server Type : MySQL
Source Server Version : 80035 (8.0.35)
Source Host : localhost:3306
Source Schema : tb_product
Target Server Type : MySQL
Target Server Version : 80035 (8.0.35)
File Encoding : 65001
Date: 23/03/2024 14:14:07
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for product
-- ----------------------------
DROP TABLE IF EXISTS `product`;
CREATE TABLE `product` (
`id` int NOT NULL AUTO_INCREMENT COMMENT '商品编号',
`product_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '商品名称',
`price` double(15, 3) NULL DEFAULT NULL COMMENT '商品价格',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of product
-- ----------------------------
INSERT INTO `product` VALUES (5, '上衣', 100.000);
INSERT INTO `product` VALUES (6, '裤子', 50.000);
INSERT INTO `product` VALUES (7, '毛衣', 200.000);
INSERT INTO `product` VALUES (8, '帽子', 30.000);
INSERT INTO `product` VALUES (9, '鞋', 200.000);
SET FOREIGN_KEY_CHECKS = 1;