-
Notifications
You must be signed in to change notification settings - Fork 25
/
create_table.sql
30 lines (27 loc) · 944 Bytes
/
create_table.sql
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
/* mysql Ver 14.14 Distrib 5.7.24, for linux-glibc2.12 (x86_64) using EditLine wrapper */
create database industry DEFAULT CHARACTER SET utf8;
use industry;
CREATE TABLE dim_industry (
id int AUTO_INCREMENT,
industry_id varchar(12),
name varchar(1000),
parent_id varchar(12),
level_type int,
description varchar(4000)
);
CREATE TABLE dim_industry2 (
id int auto_increment,
category_industry_id varchar(10),
category_name varchar(1000),
category_desc varchar(1000),
large_class_industry_id varchar(10),
large_class_name varchar(1000),
large_class_desc varchar(1000),
mid_class_industry_id varchar(10),
mid_class_name varchar(1000),
mid_class_desc varchar(1000),
small_class_industry_id varchar(10),
small_class_name varchar(1000),
small_class_desc varchar(1000),
primary key(id)
);