-
Notifications
You must be signed in to change notification settings - Fork 0
/
load.sql
48 lines (42 loc) · 1.41 KB
/
load.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
LOAD DATA INFILE 'C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\EMPLOYEE.csv'
INTO TABLE EMPLOYEE
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;
LOAD DATA INFILE 'C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\CUSTOMERS.csv'
INTO TABLE CUSTOMERS
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;
LOAD DATA INFILE 'C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\FLIGHT_INFORMATION.csv'
INTO TABLE FLIGHT_INFORMATION
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;
LOAD DATA INFILE 'C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\FLIGHT_PERKS.csv'
INTO TABLE FLIGHT_PERKS
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;
LOAD DATA INFILE 'C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\PLANE_INFORMATION.csv'
INTO TABLE PLANE_INFORMATION
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;
LOAD DATA INFILE 'C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\FLIES_ON.csv'
INTO TABLE FLIES_ON
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;
LOAD DATA INFILE 'C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\FLIGHT_PLANE.csv'
INTO TABLE FLIGHT_PLANE
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;