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
2010-03-08 06:08:27
@rerun: DML SQL is a SuperUser topic? What are you smoking?
David-W-Fenton
2010-03-08 19:26:43
@David Ok I thought a simple column add would be.
rerun
2010-03-08 19:51:48
I honestly can't see how any level of SQL usage belongs on SuperUser.
David-W-Fenton
2010-03-09 21:42:15