create table t1(ider number null);
Does it behave as:
create table t1(ider number check (ider is null));
or
create table t1(ider number default null);
?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
None of your two hypotheses.
Oracle takes
NULLin a column specification as the explicit absence of a NOT NULL constraint. It is a (misleading) no-op in aCREATE TABLEstatement, but not necessarily in anALTER TABLEstatement where it can revoke a previously existing constraint.Therefore when you use
CREATE TABLE t(c INTEGER NULL)it does not mean thatcshould be always null, nor does it mean thatchas default valueNULL. It just means thatcbeing null is ok.