Re: Not null constraint in postgre - Mailing list pgsql-novice

From Chamath Sajeewa
Subject Re: Not null constraint in postgre
Date
Msg-id CACpofehznhV06NfCWpk_gMUqcy4szvPfFKagCxVa3=cGMxCqdQ@mail.gmail.com
Whole thread Raw
In response to Re: Not null constraint in postgre  ("Amit S." <comeonamit@gmail.com>)
List pgsql-novice
Hi,
column data type is int4. 
Thanks!

On Mon, 27 Jul 2020, 11:19 Amit S., <comeonamit@gmail.com> wrote:

On Mon, Jul 27, 2020 at 11:15 AM Chamath Sajeewa <csgsajeewa@gmail.com> wrote:
Hi,
There is a column in my table with not null constraint. Default value is set to 0 for that column. In my query, column value is set to null. When i try to execute that query in pgsql, it is getting failed due to constraint violation. Any idea? This is working in oracle.
Thank You!


--

Amit Sharma

pgsql-novice by date:

Previous
From: "Amit S."
Date:
Subject: Re: Not null constraint in postgre
Next
From: Didier Gasser-Morlay
Date:
Subject: Re: Not null constraint in postgre