Commit c9829e97 authored by alexjubs's avatar alexjubs
Browse files

drop table if exitsts

parent fb27c0ff
-- Show warnings;
warnings;
drop table if exists assessments;
drop table if exists courses;
drop table if exists studentAssessment;
drop table if exists studentInfo;
drop table if exists studentRegistration;
drop table if exists studentVle;
drop table if exists vle;
create table assessments(
code_module varchar(45),
code_presentation varchar(45),
......@@ -75,7 +86,7 @@ create table vle (
load data LOCAL infile '/home/stefan/stefan/3B/356/ece356/Project/assessments.csv' ignore into table assessments
load data LOCAL infile '/Users/alexjabbour/Desktop/Uni/3B/356-group-40-project/assessments.csv' ignore into table assessments
fields terminated by ','
enclosed by '"'
lines terminated by '\r\n'
......@@ -83,7 +94,7 @@ load data LOCAL infile '/home/stefan/stefan/3B/356/ece356/Project/assessments.cs
load data LOCAL infile '/home/stefan/stefan/3B/356/ece356/Project/courses.csv' ignore into table courses
load data LOCAL infile '/Users/alexjabbour/Desktop/Uni/3B/356-group-40-project/courses.csv' ignore into table courses
fields terminated by ','
enclosed by '"'
lines terminated by '\r\n'
......@@ -91,35 +102,35 @@ load data LOCAL infile '/home/stefan/stefan/3B/356/ece356/Project/courses.csv' i
load data LOCAL infile '/home/stefan/stefan/3B/356/ece356/Project/studentAssessment.csv' ignore into table studentAssessment
load data LOCAL infile '/Users/alexjabbour/Desktop/Uni/3B/356-group-40-project/studentAssessment.csv' ignore into table studentAssessment
fields terminated by ','
enclosed by '"'
lines terminated by '\r\n'
ignore 1 lines;
load data LOCAL infile '/home/stefan/stefan/3B/356/ece356/Project/studentInfo.csv' ignore into table studentInfo
load data LOCAL infile '/Users/alexjabbour/Desktop/Uni/3B/356-group-40-project/studentInfo.csv' ignore into table studentInfo
fields terminated by ','
enclosed by '"'
lines terminated by '\r\n'
ignore 1 lines;
load data LOCAL infile '/home/stefan/stefan/3B/356/ece356/Project/studentRegistration.csv' ignore into table studentRegistration
load data LOCAL infile '/Users/alexjabbour/Desktop/Uni/3B/356-group-40-project/studentRegistration.csv' ignore into table studentRegistration
fields terminated by ','
enclosed by '"'
lines terminated by '\r\n'
ignore 1 lines;
load data LOCAL infile '/home/stefan/stefan/3B/356/ece356/Project/studentVle.csv' ignore into table studentVle
load data LOCAL infile '/Users/alexjabbour/Desktop/Uni/3B/356-group-40-project/studentVle.csv' ignore into table studentVle
fields terminated by ','
enclosed by '"'
lines terminated by '\r\n'
ignore 1 lines;
load data LOCAL infile '/home/stefan/stefan/3B/356/ece356/Project/vle.csv' ignore into table vle
load data LOCAL infile '/Users/alexjabbour/Desktop/Uni/3B/356-group-40-project/vle.csv' ignore into table vle
fields terminated by ','
enclosed by '"'
lines terminated by '\r\n'
......
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