Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathinit.sql
More file actions
Latest commit
57 lines (47 loc) · 1.81 KB
/
Copy pathinit.sql
File metadata and controls
57 lines (47 loc) · 1.81 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS =0;
createdatabasetest;
use test;
-- ----------------------------
-- Table structure for lcn_demo
-- ----------------------------
DROPTABLE IF EXISTS `lcn_demo`;
CREATETABLE `lcn_demo` (
`id`int(12) NOT NULL AUTO_INCREMENT,
`name`varchar(30) DEFAULT NULL,
`module`varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET FOREIGN_KEY_CHECKS =1;
-- 删除语句分析测试样例
DROPTABLE IF EXISTS `lcn_sql_parse_test1`;
CREATETABLE `lcn_sql_parse_test1` (
`id`int(12) NOT NULL AUTO_INCREMENT,
`name`varchar(30) DEFAULT NULL comment '姓名',
`sex`varchar(10) DEFAULT NULL comment '性别',
`job`varchar(32) DEFAULT NULL comment '工作',
`home_address`varchar(128) default null comment '家庭住址',
`age`int default null comment '年龄',
`dept_id`int default 0not null comment '部门编号',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
SET FOREIGN_KEY_CHECKS =1;
DROPTABLE IF EXISTS `lcn_sql_parse_test2`;
CREATETABLE `lcn_sql_parse_test2` (
`id`int(12) AUTO_INCREMENT ,
`dept_name`varchar(32) null comment '部门名称',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
SET FOREIGN_KEY_CHECKS =1;
DROPTABLE IF EXISTS `lcn_sql_parse_test3`;
createtable `lcn_sql_parse_test3` (
`id` varbinary(32) not null,
`name`varchar(30) null comment '姓名',
`sex`varchar(10) null comment '性别',
`job`varchar(32) null comment '工作',
`home_address`varchar(128) null comment '家庭住址',
`age`intnull comment '年龄',
`dept_id`int default 0not null comment '部门编号',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
SET FOREIGN_KEY_CHECKS =1;