SQL to insert a new column; multiple actions in a query

  • Thread starter Thread starter Mario
  • Start date Start date
M

Mario

Can any body please help me with a sample code for
inserting a column into a table.

Also., can one single sql query do the following:

.....insert column.....;

....update....;


saved in one query.

Please help
Mario
 
Hi,



ALTER TABLE tableName ADD COLUMN columnName SHORT


since 2000, you can add a DEFAULT too, using Jet 4.0, but WITH ADO (outside
the query designer):


ALTER TABLE tableName ADD COLUMN columnName SHORT DEFAULT 0


You can also add a constraint.


You can't update at the same time.


Hoping it may help,
Vanderghast, Access MVP
 
Back
Top