CSV files & empty strings

Поиск
Список
Период
Сортировка
От Nate Randall
Тема CSV files & empty strings
Дата
Msg-id a4c6b1fe0910192155r1a2a4fa8w4e179c360073e2be@mail.gmail.com
обсуждение исходный текст
Ответы Re: CSV files & empty strings
Список pgsql-general
I am new to Postgre, having formerly used Filemaker Pro.  I need to import CSV files into Postgre which contain some empty string "" values in several date-type fields.  I am able to import the CSV files into Postgre with the COPY FROM command if the datefields are converted to text fields in Postgre.  However, I need some method of "converting" the empty string "" values into NULL values after import, so that I can change the date fields back to date-type.  Any suggestions on how this could be accomplished?


Thanks,

-Nate

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

Предыдущее
От: 黄永卫
Дата:
Сообщение: 答复: [GENERAL] About could not connect to server: Connection timed out
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: CSV files & empty strings