How to create named DEFAULT constraint [message #642588] |
Tue, 15 September 2015 04:04 |
|
battaarchana
Messages: 8 Registered: September 2015
|
Junior Member |
|
|
Hi Everyone,
Can you please help me in creating named DEFAULT constraint?For ex, i have customers table with fields ID,Name,ADDRESS,SALARY and AGE. Now, i want to alter this table by adding a named DEFAULT constraint for SALARY and AGE.
This is something which i tried and didnt work.
ALTER TABLE customers
ADD CONSTRAINT mydef_const DEFAULT 25 for AGE;
can you please correct me if i am wrong.
Thanks & Regards,
B Archana.
|
|
|
|
|
|
|