Results 1 to 3 of 3

Thread: whats wrong with this sql statement?

  1. #1

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545

    whats wrong with this sql statement?

    Hi what is wrong with this sql statement?

    VB Code:
    1. mySQLstring = "CREATE TABLE Reservations2002 ResNumber LONG CONSTRAINT myconstraint PRIMARY KEY, CustomerID LONG, ReservationDate DATETIME, FreeDay LONG, Status TEXT (50) );"
    2.     mydb.Execute mySQLstring

    The above code generates the following error....

    "Sytax error in CREATE TABLE statement"

  2. #2
    Si_the_geek
    Guest
    is this too obvious??

    you have no bracket after the table name...

  3. #3

    Thread Starter
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    Warning to other programmers. Do not go to work on 4 hours sleep or you start to go blind!!!!

    I'm an idiot!

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