Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to define constraints in create table statement

Status
Not open for further replies.

ZAMBER25

Technical User
Jun 23, 2005
7
NL
Hi experts. Could any one tell me how we can define constraints in create table statements? Furthermore, how many type of constraints we ca defind in create table statement.An exmaple in sql server 2k will highly be appretiated.Thanks
 
yes, all and
create table abc (c1 int identity primary key, c2 varchar(300) default 'no value' not null,
c3 varchar(300)check (c3='Only Answer Possible look up Create Table in BOL for wildcard examples :)' )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top