Click here to Skip to main content
15,908,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have installed ms-office 2007. But I running this below query:-
SQL
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:40am
v2

1 solution

You should remove the single quotation marks like this

SQL
City varchar(255) DEFAULT Sandnes


Take a look at this page How to modify a table's design using Access SQL[^]

Hope this helps
 
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