Multiple ADD COLUMN in one shot?

J

JR

I have a statement in a query like:

ALTER TABLE EXP ADD COLUMN first_name TEXT(75);

If I wanted to add 5 columns in one shot, how would I do this? Trying
to save this for repeatitive execution when I remove and recreate the
primary table from the DB. Putting even 2 alter table statements in a
row error. Guessing because this is a "Query", singular, and not a
script but wondering if this is possible.

Thanks.

JR
 
G

Guest

Try

ALTER TABLE EXP ADD COLUMN first_name TEXT(75), Last_name TEXT(75) , City_Id
Long, Phone Text (12);

etc
 
G

Guest

To get slightly better DDL facilities, use ADO or 'ANSI mode'
instead of DAO or 'Access SQL' mode.

Application.CurrentConnection.Execute("my DDL")

However, to remove and recreate table, I would save a template
table, then re-create with a make-table query.

(david)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top