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!

Table Creation with Default Values 1

Status
Not open for further replies.

sujitopics

Programmer
Oct 9, 2001
69
KR
hai
how to create a table in database thru query analyzer.
i have a default value for the field.
for ex.

create table emp (eno int);

for the above table how can i set the default value for eno field.

can anybody know this..please give me the sql query to create table with default values

Thanks in advance
Yours
Suji
 
Something like:


create table emp
(eno int Default ('ValueHere'));


Check Create Table in BOL for more information and examples.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top