views:

50

answers:

1

How can I create a new column on an existing table in Access using a query?

+1  A: 

You add columns to a database using ALTER TABLE.

To add a column:

ALTER TABLE table_name
ADD column_name column-definition;

Eg:

ALTER TABLE supplier
ADD supplier_name  Text(50);

ALTER TABLE supplier
ADD supplier_number  Long;

See here for some more details.

rerun
@rerun: DML SQL is a SuperUser topic? What are you smoking?
David-W-Fenton
@David Ok I thought a simple column add would be.
rerun
I honestly can't see how any level of SQL usage belongs on SuperUser.
David-W-Fenton