Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have install ms-office 2007. But I running this below query:-
CREATE TABLE Persons
(
P_Id int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255) DEFAULT 'Sandnes'
)
Yet not working this query. Syntax error in DEFAULT keyword..
Please helps me..
Posted
Updated 17-Nov-11 1:13am
v5

 
Share this answer
 
Using "Default Constraint". Have a look at below link for more details.

http://www.w3schools.com/sql/sql_default.asp
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900