소스 검색

add script to import csv files

Pi 2 년 전
부모
커밋
345254ea52
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      import-data.sql

+ 10 - 0
import-data.sql

@@ -0,0 +1,10 @@
+\copy c_a_kingdom(translation,reference) FROM './a_kingdom.csv' DELIMITER ',' CSV HEADER;
+\copy c_z_kingdom(reference,translation) FROM './z_kingdom.csv' DELIMITER ',' CSV HEADER;
+\copy c_bread(translation,reference) FROM './bread.csv' DELIMITER ',' CSV HEADER;
+\copy c_deliver(reference,translation) FROM './deliver.csv' DELIMITER '	' CSV HEADER;
+\copy c_name(translation,reference) FROM './name.csv' DELIMITER '	' CSV HEADER;
+\copy c_will(reference,translation) FROM './will.csv' DELIMITER '	' CSV HEADER;
+\copy c_because(reference,translation) FROM './because.csv' DELIMITER '	' CSV HEADER;
+\copy c_debtors(translation,reference) FROM './debtors.csv' DELIMITER ',' CSV HEADER;
+\copy c_glory(reference,translation) FROM './glory.csv' DELIMITER '	' CSV HEADER;
+\copy c_tempt(translation,reference) FROM './tempt.csv' DELIMITER ',' CSV HEADER;