2
I have a database already created, within it I have a table already created. In it I need to create a field that is NOT NULL
. I do everything by the graphical interface that is faster, I click on the table > new column :
, I name it, name it and mark it NOT NULL
. When I check the NOT NULL option and click OK, save appears the following error:
AN ERROR OCCURRED:
Column: "Name" contains null values.
I use the version of PGADMIN III.
Oops, thank you for the answer. But that’s not it, I’m creating a new column, it didn’t exist before and there’s no null data in a column that’s created at the moment.
– Estácio Di Fabio
See if you can handle it now.
– Maniero
Yes, that way I can insert a new field like NOT NULL. Thank you
– Estácio Di Fabio
@Do you know that you can also vote on the answers? Not only on the questions you asked, you can vote on everything on website. See the [tour]. It would be nice for you to review at least everything you’ve posted and see if what you posted deserves your vote.
– Maniero