Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Nulls
ORACLE treats NULL according to the SQL (-89, -92) standard, i.e. a NULL represents an "unknown" value, regardless of the datatype of the column.
In regards to how to define your tables, ORACLE allows you to do something very similar to INGRES' NOT NULL WITH DEFAULT.
If you already have defined your table and column(s), try this:
ALTER TABLE <your_table> MODIFY (<table_column> DEFAULT <default_value> NOT NULL); Make sure you have the DEFAULT clause before the NOT NULL clause !
You can do the same thing when you create a new table (replace ALTER with CREATE and don't use MODIFY).
Hope this helps.
Michael Serbanescu
![]() |
![]() |