Fix import directory.
This commit is contained in:
parent
edceaf7be6
commit
ab479c5d1f
@ -96,8 +96,7 @@ CREATE TABLE crime_reports (
|
||||
);
|
||||
|
||||
COPY crime_reports (original_text)
|
||||
-- FROM 'C:\YourDirectory\crime_reports.csv'
|
||||
FROM '/Users/adebarros/Dropbox/DataMonky/Book-Writing/PracticalSQL_2e/Code-Repo/Chapter_14/crime_reports.csv'
|
||||
FROM 'C:\YourDirectory\crime_reports.csv'
|
||||
WITH (FORMAT CSV, HEADER OFF, QUOTE '"');
|
||||
|
||||
SELECT original_text FROM crime_reports;
|
||||
@ -271,8 +270,7 @@ CREATE TABLE president_speeches (
|
||||
);
|
||||
|
||||
COPY president_speeches (president, title, speech_date, speech_text)
|
||||
-- FROM 'C:\YourDirectory\president_speeches.csv'
|
||||
FROM '/Users/adebarros/Dropbox/DataMonky/Book-Writing/PracticalSQL_2e/Code-Repo/Chapter_14/president_speeches.csv'
|
||||
FROM 'C:\YourDirectory\president_speeches.csv'
|
||||
WITH (FORMAT CSV, DELIMITER '|', HEADER OFF, QUOTE '@');
|
||||
|
||||
SELECT * FROM president_speeches;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user