PDA

Click to See Complete Forum and Search --> : Creating DB Tables using SQL


rodders45
Jul 4th, 2000, 02:21 PM
Does anyone know how to create a table in an Access database using SQL, creating a primary key field which increments automatically?

RogerH
Jul 4th, 2000, 02:25 PM
CREATE TABLE Test (ID AutoIncrement Constraint PrimaryKey PRIMARY KEY, OtherField TEXT);

Roger

rodders45
Jul 4th, 2000, 02:36 PM
Thanks a lot

Jul 5th, 2000, 06:07 AM
Incidentally... :)

That's called DDL (data manipulation language - a subset of SQL) the other one is DML (data manipulation language - SELECT and all that lark)

Geek signing off! :D