A
A
AlmazKayum2019-05-05 18:36:33
PostgreSQL
AlmazKayum, 2019-05-05 18:36:33

How to null fields in PostgreSQL?

Good afternoon.
I am trying to reset the table fields using the command

UPDATE filters SET height_low=NULL|height_high=NULL WHERE chat_id=%s

gives an error message
psycopg2.ProgrammingError: column "height_low" is of type integer but expression is of type boolean
HINT:  You will need to rewrite or cast the expression.

It is necessary to convert integer to NULL, what can be done?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question