Invalid Input Syntax for Type date

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 1251ila
    New Member
    • Nov 2008
    • 1

    Invalid Input Syntax for Type date

    I am trying to import a text file into a postgres table and I get the following error message:

    Invalid input syntax for type date: field name

    The date format is yyyy-mm-dd
    So the text file has 1999-02-22 as an example

    I also tried changing the date format but the error was still raised

    Please help!
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    Writing
    Originally posted by 1251ila
    I am trying to import a text file into a postgres table
    you mean using
    Code:
    copy
    command?
    Is any data put into table when you do the import or no?
    When you say about date format, did you check it in the database using
    Code:
    show datestyle
    command?

    Comment

    Working...