Results 1 to 4 of 4

Thread: Creating DB Tables using SQL

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Manchester, UK
    Posts
    50

    Cool Creating DB Tables using SQL

    Does anyone know how to create a table in an Access database using SQL, creating a primary key field which increments automatically?

  2. #2
    Lively Member
    Join Date
    Dec 1999
    Location
    Karlsruhe, Germany
    Posts
    122
    CREATE TABLE Test (ID AutoIncrement Constraint PrimaryKey PRIMARY KEY, OtherField TEXT);

    Roger

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Manchester, UK
    Posts
    50

    Smile

    Thanks a lot

  4. #4
    Guest
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width