-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathremaining_inserts.sql
45 lines (36 loc) · 956 Bytes
/
remaining_inserts.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
COPY athlete
from 'C:\Users\lunag\OneDrive\Documentos\MACC 2021-1\Bases_datos\Proyecto\person.csv'
with
NULL '0'
delimiter ','
csv header;
select * from athlete;
COPY represents
from 'C:\Users\lunag\OneDrive\Documentos\MACC 2021-1\Bases_datos\Proyecto\person_region.csv'
with
delimiter ','
csv header;
select * from represents;
COPY participates
from 'C:\Users\lunag\OneDrive\Documentos\MACC 2021-1\Bases_datos\Proyecto\games_competitor.csv'
with
delimiter ','
csv header;
select * from participates;
COPY competes
from 'C:\Users\lunag\OneDrive\Documentos\MACC 2021-1\Bases_datos\Proyecto\competitor_event.csv'
with
delimiter ','
csv header;
select * from competes;
select * from athlete;
select * from category;
select * from city;
select * from event;
select * from event_city;
select * from event_sport; --vacia
select * from medal;
select * from participates;
select * from region;
select * from represents;
select * from sport;