How to assign a name to Check Constraint on existing tables?

 Posted by vishalneeraj-24503 on 9/1/2014 | Category: Sql Server Interview questions | Views: 1157 | Points: 40
Answer:

We can refer below script.
We have to use Constraint keyword in case of Sql Server,Oracle and MS-Access.
Alter Table Employee_Master

Add Constraint ck_employee Check([PAN_Number] Is Not Null)

Here,ck_employee will be used as a constraints name.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response