By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,613 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,613 IT Pros & Developers. It's quick & easy.

create table and specify a default value

P: n/a
Is it possible to create the customer table and specify a default
value?

Here is the SQL code I am using in MS Access.

CREATE TABLE customer
(First_Name char(50),
Last_Name char(50),
Address char(50) default 'Unknown',
City char(50) default 'Mumbai',
Country char(25),
Birth_Date date)

Thanks!,

jmarr02s

Mar 14 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
See:
http://allenbrowne.com/func-DDL.html#CreateTableDDL

The example illustrates using DEFAULT.
Note that it executes under ADO.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"jmarr02s" <jo***********@illinois.govwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...
Is it possible to create the customer table and specify a default
value?

Here is the SQL code I am using in MS Access.

CREATE TABLE customer
(First_Name char(50),
Last_Name char(50),
Address char(50) default 'Unknown',
City char(50) default 'Mumbai',
Country char(25),
Birth_Date date)

Thanks!,

jmarr02s
Mar 14 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.