Re: How to manage null value while copy data from csv

Поиск
Список
Период
Сортировка
От Blairemaloneback
Тема Re: How to manage null value while copy data from csv
Дата
Msg-id 3e60e23c-9df4-4143-9cdd-9ecbb410c504@iPhone
обсуждение исходный текст
Ответ на How to manage null value while copy data from csv  (Sachin Kumar <sachinkumaras@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: maicon ferreira da silva
Дата:
Сообщение:
Следующее
От: Ankush Chawla
Дата:
Сообщение: hot standby in Postgresql 12