Skip to content

Instantly share code, notes, and snippets.

@tlrobinson
Created April 24, 2017 05:25
Show Gist options
  • Save tlrobinson/c4aaaea8b5768881aeda06f9b24abc14 to your computer and use it in GitHub Desktop.
Save tlrobinson/c4aaaea8b5768881aeda06f9b24abc14 to your computer and use it in GitHub Desktop.
CREATE TABLE sf_crime_incidents (
incident_number integer,
category varchar,
description varchar,
day_of_week varchar,
date date,
time time,
police_department_district varchar,
resolution varchar,
address varchar,
latitude double precision,
longitude double precision,
location varchar
);
COPY sf_crime_incidents
FROM '/Users/tlrobinson/Downloads/SF_Crime_Heat_Map.csv'
DELIMITER ','
CSV HEADER;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment