mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-07 23:07:00 +02:00
27 lines
582 B
Fish
27 lines
582 B
Fish
LOAD CSV
|
|
FROM INLINE with encoding 'ascii'
|
|
INTO postgresql:///pgloader?jordane
|
|
|
|
WITH truncate,
|
|
fields terminated by '|',
|
|
fields not enclosed,
|
|
fields escaped by backslash-quote
|
|
|
|
SET work_mem to '128MB',
|
|
standard_conforming_strings to 'on'
|
|
|
|
BEFORE LOAD DO
|
|
$$ drop table if exists jordane; $$,
|
|
$$ CREATE TABLE jordane
|
|
(
|
|
"NOM" character(20),
|
|
"PRENOM" character(20)
|
|
)
|
|
$$;
|
|
|
|
BORDET|Jordane
|
|
BORDET|Audrey
|
|
LASTNAME|"opening quote
|
|
BONNIER|testprenombeaucouptroplong
|
|
JOURDAIN|héhé¶
|