SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Creating database problem

  1. #1
    SitePoint Member
    Join Date
    Jul 2011
    Location
    Grand Rapids, Michigan, USA
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating database problem

    CREATE TABLE joke(
    id INT NOT NULL AUTO_ INCREMENT PRIMARY KEY ,
    joketext TEXT,
    jokedate DATE NOT NULL
    ) DEFAULT CHARACTER SET utf8;



    I keep getting #1064

  2. #2
    SQL Consultant silver trophybronze trophy
    SitePoint Award Recipient r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    38,445
    Mentioned
    34 Post(s)
    Tagged
    1 Thread(s)
    there should not be a space between AUTO_ and INCREMENT

    r937.com | rudy.ca | Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

Bookmarks

Posting Permissions

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