Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Default column values
I have a test table with a date column, a varchar2 column and a number column with a default value of 50. When I insert data into the table and leave the number field blank (NULL), it stays NULL (doesn't insert the default value of 50). If I modify the column to be NOT NULL and try to insert the same data, I violate the NOT NULL constraint. How does the default value get inserted into the table when no value is given in the insert statement?
Thanks!!
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Fri Oct 20 2000 - 14:08:47 CDT
![]() |
![]() |