Re: How to manage null value while copy data from csv - Mailing list pgsql-admin

From Blairemaloneback
Subject Re: How to manage null value while copy data from csv
Date
Msg-id 3e60e23c-9df4-4143-9cdd-9ecbb410c504@iPhone
Whole thread Raw
In response to How to manage null value while copy data from csv  (Sachin Kumar <sachinkumaras@gmail.com>)
List pgsql-admin
Got it, thanks. 

#edo-signature img {max-width: 90%}



On Dec 31, 2020 at 1:26 AM, <Sachin Kumar> wrote:

Hi experts,

when I am uploading data (CSV File) using the COPY command. I am getting below mention error.

ERROR:  null value in column "adj_type" violates not-null constraint.

When I define null it gives no error message, but how to manage null value n data without defining it, because there is many more columns. when it defines null it gives an error if null value comes you are violating null.

Please suggest how to manage null value in postgresql?



--

Best Regards,
Sachin Kumar

pgsql-admin by date:

Previous
From: maicon ferreira da silva
Date:
Subject:
Next
From: Ankush Chawla
Date:
Subject: hot standby in Postgresql 12