From: Sachin Kumar <sachinkumaras@gmail.com>
To: pgsql-admin@lists.postgresql.org
To: pgsql-admin@postgresql.org
To: krishna@thewebconz.com
Subject: How to manage null value while copy data from csv
Date: Thu, 31 Dec 2020 11:55:39 +0530
Message-ID: <CALg-PKBrp0weDcA_2vsGdd4DCj_jKJy83CYEPyR2+xO2j9jR6A@mail.gmail.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: sachinkumaras@gmail.com, pgsql-admin@lists.postgresql.org, krishna@thewebconz.com
Subject: Re: How to manage null value while copy data from csv
In-Reply-To: <CALg-PKBrp0weDcA_2vsGdd4DCj_jKJy83CYEPyR2+xO2j9jR6A@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox