Invalid input syntax for type date: "\N" in postgresql when fetching data

Ertuğrul Çetin

I'm using postgresql and getting this sql error:

org.postgresql.util.PSQLException: ERROR: invalid input syntax for type date: "\N"

Here is my code:

SELECT * FROM person WHERE  person.dob = '\N' OR person.dob = '1994-01-16';

How can I allow Null values? so what should I add to this SQL statement?

Damián Rafael Lattenero

Try this following code:

SELECT * FROM person WHERE  person.dob is null OR person.dob = '1994-01-16';

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

"invalid input syntax for type numeric" for entering "emptyness"

From Dev

Postgres COPY FROM Fails With invalid input syntax for type timestamp

From Dev

Error: invalid input syntax for integer: ""

From Dev

Operand data type date is invalid for subtract operator

From Dev

rails postgres ERROR: invalid input syntax for type double precision

From Dev

Invalid input syntax for type interval

From Dev

PostgreSQL - Error: "invalid input syntax for type bytea"

From Dev

A lot of "invalid command \N" when I try to restore PostgreSQL dump

From Dev

Core Data error when fetching

From Dev

POSTgreSQL 9.5: invalid input syntax for integer when trying to copy from CSV

From Dev

HSQLDB - Date Format : Incompatible data type in conversion or invalid datetime format

From Dev

Invalid data found when processing input | ffmpeg

From Dev

Invalid Input Syntax for Type Date

From Dev

Fetching data into local table type

From Dev

How to input a lot of data until you type in an invalid number in java

From Dev

Error: invalid input syntax for integer: ""

From Dev

rails postgres ERROR: invalid input syntax for type double precision

From Dev

Invalid input syntax PLPGSQL script

From Dev

Fetching Data based date and time

From Dev

Fetching data and sums according to date in postgresql

From Dev

Core Data error when fetching

From Dev

HSQLDB - Date Format : Incompatible data type in conversion or invalid datetime format

From Dev

Postgresql 9.4 - Invalid input syntax when converting to JSONB

From Dev

Invalid input syntax for type double precision

From Dev

invalid input syntax for integer (string)

From Dev

pg nodejs package results in 'invalid input syntax for type json'

From Dev

ActiveRecord::StatementInvalid (PG::InvalidDatetimeFormat: ERROR: invalid input syntax for type date: ""

From Dev

How to solve invalid input syntax for type double precision

From Dev

"invalid input syntax for integer" when input is actually a string

Related Related

  1. 1

    "invalid input syntax for type numeric" for entering "emptyness"

  2. 2

    Postgres COPY FROM Fails With invalid input syntax for type timestamp

  3. 3

    Error: invalid input syntax for integer: ""

  4. 4

    Operand data type date is invalid for subtract operator

  5. 5

    rails postgres ERROR: invalid input syntax for type double precision

  6. 6

    Invalid input syntax for type interval

  7. 7

    PostgreSQL - Error: "invalid input syntax for type bytea"

  8. 8

    A lot of "invalid command \N" when I try to restore PostgreSQL dump

  9. 9

    Core Data error when fetching

  10. 10

    POSTgreSQL 9.5: invalid input syntax for integer when trying to copy from CSV

  11. 11

    HSQLDB - Date Format : Incompatible data type in conversion or invalid datetime format

  12. 12

    Invalid data found when processing input | ffmpeg

  13. 13

    Invalid Input Syntax for Type Date

  14. 14

    Fetching data into local table type

  15. 15

    How to input a lot of data until you type in an invalid number in java

  16. 16

    Error: invalid input syntax for integer: ""

  17. 17

    rails postgres ERROR: invalid input syntax for type double precision

  18. 18

    Invalid input syntax PLPGSQL script

  19. 19

    Fetching Data based date and time

  20. 20

    Fetching data and sums according to date in postgresql

  21. 21

    Core Data error when fetching

  22. 22

    HSQLDB - Date Format : Incompatible data type in conversion or invalid datetime format

  23. 23

    Postgresql 9.4 - Invalid input syntax when converting to JSONB

  24. 24

    Invalid input syntax for type double precision

  25. 25

    invalid input syntax for integer (string)

  26. 26

    pg nodejs package results in 'invalid input syntax for type json'

  27. 27

    ActiveRecord::StatementInvalid (PG::InvalidDatetimeFormat: ERROR: invalid input syntax for type date: ""

  28. 28

    How to solve invalid input syntax for type double precision

  29. 29

    "invalid input syntax for integer" when input is actually a string

HotTag

Archive