Verified Commit 8aeb8d14 authored by Kiryuu Sakuya's avatar Kiryuu Sakuya 🎵
Browse files

Fix No.2

parent d45212f3
......@@ -40,8 +40,8 @@ create table sales (
order_date datetime not null comment "订货日期",
ship_date datetime not null comment "出货日期",
invoice_no char(8) not null comment "发票号码",
PRIMARY KEY (order_no)
)
PRIMARY KEY (order_no)
);
# numeric(5, 2) 里面的 5 是精度,表示十进制数字的数目,而 2 表示小数点后的数字位数。
......
......@@ -42,24 +42,24 @@ INSERT INTO employee (
"10005", "张三鸣", "女", "董事会", "办公室主任", "2016-10-03 12:42:32", "1981-04-20 12:56:22", "10000", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
), (
"10006", "张四鸣", "女", "董事会", "销售经理", "2016-10-04 09:15:24", "1982-12-10 03:25:59", "10000", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
) (
), (
"20001", "王维林", "男", "销售部", "销售人员", "2016-10-01 09:00:00", "1989-06-04 23:00:00", "3400", "北京市东城区台基厂头条14号院", NOW()
), (
"20002", "马云", "男", "销售部", "销售人员", "2016-10-01 09:00:00", "1964-09-10 02:51:00", "3600", "北京市朝阳区西大望路西大望路甲12号", NOW()
), (
"20003", "张五鸣", "男" "人力资源部", "文员", "2016-10-05 11:12:13", "1985-04-01 02:51:22", "3500", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
"20003", "张五鸣", "男", "人力资源部", "文员", "2016-10-05 11:12:13", "1985-04-01 02:51:22", "3500", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
), (
"20004", "张六鸣", "男" "销售部" "市场助理", "2016-10-05 11:12:13", "1986-02-15 09:22:34", "4000", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
"20004", "张六鸣", "男", "销售部", "市场助理", "2016-10-05 11:12:13", "1986-02-15 09:22:34", "4000", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
), (
"20005", "张七鸣", "女" "财务部", "会计", "2016-10-04 21:09:00", "1987-02-22 14:28:59", "5000", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
"20005", "张七鸣", "女", "财务部", "会计", "2016-10-04 21:09:00", "1987-02-22 14:28:59", "5000", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
), (
"20006", "张八鸣", "女" "财务部", "出纳", "2016-10-09 21:00:00", "1988-06-12 14:22:34", "4500", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
"20006", "张八鸣", "女", "财务部", "出纳", "2016-10-09 21:00:00", "1988-06-12 14:22:34", "4500", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
), (
"20007", "张九鸣", "男" "后勤部", "主管", "2016-10-10 11:23:55", "1989-06-04 12:16:00", "7500", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
"20007", "张九鸣", "男", "后勤部", "主管", "2016-10-10 11:23:55", "1989-06-04 12:16:00", "7500", "江西省景德镇市珠山区广场北路广瑞公寓一期7号楼1单元201室", NOW()
), (
"20008", "张十鸣", "男" "后勤部", "文员", "2017-01-15 15:33:32", "1978-12-23 09:22:14", "4500", "四川省成都市成华区升仙湖北路2号红花堰小区3号楼", NOW()
"20008", "张十鸣", "男", "后勤部", "文员", "2017-01-15 15:33:32", "1978-12-23 09:22:14", "4500", "四川省成都市成华区升仙湖北路2号红花堰小区3号楼", NOW()
), (
"99999", "龙玉涛", "NaN", "NaN", "NaN", "0000-00-00 00:00:00", "0000-00-00 00:00:00", "0", "NaN", NOW()
"99999", "龙玉涛", "", "NaN", "NaN", "0000-00-00 00:00:00", "0000-00-00 00:00:00", "0", "NaN", NOW()
);
```
......@@ -132,7 +132,7 @@ INSERT INTO customer (
| 11035462019090514523456734 | 100004 | 20001 | 10 | 2019-09-05 14:52:34 | 2019-09-05 14:52:35 | 34600358 |
| 11035462019090609452277643 | 100005 | 20001 | 100 | 2019-09-06 09:45:22 | 2019-09-06 17:33:55 | 34600360 |
| 11035462019090710231334567 | 100006 | 20001 | 17.2 | 2019-09-07 10:23:13 | 2019-09-07 12:00:05 | 34600362 |
| 11035462019090810204462563 | 100007 | 20002 | 5 | 2019-09-08 20:44:62 | 2019-09-08 20:45:00 | 34600364 |
| 11035462019090810204462563 | 100007 | 20002 | 5 | 2019-09-08 10:20:44 | 2019-09-08 20:45:00 | 34600364 |
| 11035462019090923452228404 | 100008 | 20002 | 35 | 2019-09-09 23:45:22 | 2019-09-10 00:00:00 | 34600366 |
| 11035462019091021342023750 | 100009 | 20002 | 89 | 2019-09-10 21:34:20 | 2019-09-11 09:11:32 | 34600368 |
| 11035462019091109080728562 | 100010 | 20002 | 50 | 2019-09-11 09:08:07 | 2019-09-11 12:06:22 | 34600370 |
......@@ -161,7 +161,7 @@ INSERT INTO sales (
), (
"11035462019090710231334567", "100006", "20001", "17.2", "2019-09-07 10:23:13", "2019-09-07 12:00:05", "34600362"
), (
"11035462019090810204462563", "100007", "20002", "5", "2019-09-08 20:44:62", "2019-09-08 20:45:00", "34600364"
"11035462019090810204462563", "100007", "20002", "5", "2019-09-08 10:20:44", "2019-09-08 20:45:00", "34600364"
), (
"11035462019090923452228404", "100008", "20002", "35", "2019-09-09 23:45:22", "2019-09-10 00:00:00", "34600366"
), (
......@@ -190,7 +190,7 @@ INSERT INTO sales (
| 11035462019090514523456734 | V0001 | 1 | 10 | 2019-09-05 14:52:34 |
| 11035462019090609452277643 | D0005 | 4 | 25 | 2019-09-06 09:45:22 |
| 11035462019090710231334567 | T0005 | 2 | 8.6 | 2019-09-07 10:23:13 |
| 11035462019090810204462563 | V0004 | 1 | 5 | 2019-09-08 20:44:62 |
| 11035462019090810204462563 | V0004 | 1 | 5 | 2019-09-08 10:20:44 |
| 11035462019090923452228404 | V0003 | 1 | 35 | 2019-09-09 23:45:22 |
| 11035462019091021342023750 | T0003 | 1 | 89 | 2019-09-10 21:34:20 |
| 11035462019091109080728562 | D0004 | 5 | 10 | 2019-09-11 09:08:07 |
......@@ -219,7 +219,7 @@ INSERT INTO sale_item (
), (
"11035462019090710231334567", "T0005", "2", "8.6", "2019-09-07 10:23:13"
), (
"11035462019090810204462563", "V0004", "1", "5", "2019-09-08 20:44:62"
"11035462019090810204462563", "V0004", "1", "5", "2019-09-08 10:20:44"
), (
"11035462019090923452228404", "V0003", "1", "35", "2019-09-09 23:45:22"
), (
......@@ -255,6 +255,7 @@ INSERT INTO sale_item (
| V0002 | CSDN代下载 CSDN不限积分 CSDN代下 24h自动发 无需咨询 |
| V0003 | 自动发货 美国苹果5美元 Apple iTunes美金正规卡gift card |
| V0004 | niconico 1个月 白金会员账号+PASS(自动发货)|
| V0005 | 测试商品 请勿拍 |
#### 示例代码
......@@ -289,6 +290,8 @@ INSERT INTO product (
"V0003", "自动发货 美国苹果5美元 Apple iTunes美金正规卡gift card"
), (
"V0004", "niconico 1个月 白金会员账号+PASS(自动发货)"
), (
"V0005", "测试商品 请勿拍"
);
```
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment