create batch script to import into postgres tables

Поиск
Список
Период
Сортировка
От Pepe TD Vo
Тема create batch script to import into postgres tables
Дата
Msg-id 866581879.1147164.1592317256828@mail.yahoo.com
обсуждение исходный текст
Ответы Re: create batch script to import into postgres tables
Re: create batch script to import into postgres tables
Список pgsql-general
good morning experts,

I nêd to set up a batch script to import multi csv files to import them to Postgres tables.  Each csv files will be named table1_todaydate.csv, table2_todaydate.csv, etc... tablen_todaydate.csv.  Each csv file will import to its table and how do I execute the script to called psql from AWS?  Do I need to create each batch file for import each table?

all export file is store in c:\export\files\

thank you.

Bach-Nga






Bach-Nga

No one in this world is pure and perfect.  If you avoid people for their mistakes you will be alone. So judge less, love, and forgive more.EmojiEmojiEmoji
To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)

**Live simply **Love generously **Care deeply **Speak kindly.
*** Genuinely rich *** Faithful talent *** Sharing success


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_repack: WARNING: relation must have a primary key or not-null unique keys
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: create batch script to import into postgres tables