2 583
edições
Sem resumo de edição |
|||
Linha 5: | Linha 5: | ||
<syntaxhighlight lang="sql"> | <syntaxhighlight lang="sql"> | ||
DROP FOREIGN TABLE IF EXISTS co_marco202307_limpo_fdw CASCADE | |||
; | |||
CREATE FOREIGN TABLE co_marco202307_limpo_fdw ( | |||
geohash9 text, | |||
dpto_mpio int, | |||
via_name text, | |||
house_number text, | |||
complemento text, | |||
lat float, | |||
lon float, | |||
n_originales int, | |||
has_dup_address boolean | |||
) | |||
SERVER files OPTIONS | |||
(filename '/tmp/mnd_uniq_good.csv', format 'csv', header 'true', delimiter ',') | |||
; | |||
------ | |||
DROP VIEW IF EXISTS co_marco202307_limpo_cartago_vw | DROP VIEW IF EXISTS co_marco202307_limpo_cartago_vw | ||
; | ; |
edições