Date format is not the same as the bank.
By default, the format is YYYY-MM-DD HH:MM:SS
You can change the date format of the section with the command:
SET datestyle TO (format);
Following is the list of formats below:
- MDY | Month-day-year | 12/16/2011
- DMY | day-Month-year | 16/12/2011
- YMD | year-Month-day | 2011-12-16
- ISO | ISO 8601/SQL standard (default) | 2011-12-16 07:37:16-08
- POSTGRES | verbose style | Fri Dec 16 07:37:16 2012 PST
- SQL | Traditional style | 12/16/2011 07:37:16.00 PST
- GERMAN | regional style | 16.12.2011 07:37:16.00 PST
To use the SQL option, you must specify the order of month and day.
Ex:
- SQL, DMY | day/Month/year | 17/12/2007 15:37:16.00 CET
- SQL, MDY | Month/day/year | 12/17/2007 07:37:16.00 PST
To enter the date data in Brazilian format, just run the select below before performing COPY:
//This will change the date format only for this session.
SET datestyle TO (SQL, MDY);
The date format in the file is different than expected. Show some lines of the file.
– Clodoaldo Neto
You can include a portion of the archive contents
C:\ANEXOS\tb_reclamacao.txt
?– Flimzy