I use NOT NULL
a lot when creating columns.
Is there a way to make this default when defining columns? In other words, make column is_nullable
default to NO
. (I realize this would make it harder for me to set it to YES
later one.)
I use Is there a way to make this default when defining columns? In other words, make column |
||||
add comment |
Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking.If this question can be reworded to fit the rules in the help center, please edit the question.
YOU have to define NOT NULL when creating a table as described in documentation : NOT NULL ==> The column is not allowed to contain null values. Examples :
Define two NOT NULL column constraints on the table distributors, one of which is explicitly given a name:
| |||
|
CREATE TABLE
andALTER TABLE
statements requires recompiling I think. Postgres is open source, so I guess you could do that. But the details would be a C question. – ypercube Aug 4 at 7:20