Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2002
    Location
    Ghent, Belgium
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Create table error

    What went wrong here?

    Error

    SQL-query :

    CREATE TABLE `Nieuws` (
    `ID` ENUM NOT NULL ,
    `Submitter` INT NOT NULL ,
    `_Time` TIME NOT NULL ,
    `_Date` DATE NOT NULL ,
    `Title` TEXT NOT NULL ,
    `Content` VARCHAR NOT NULL ,
    PRIMARY KEY ( `ID` ) ,
    FULLTEXT (
    `Content`
    )
    )

    MySQL said:

    You have an error in your SQL syntax near 'NOT NULL, `Submitter` INT NOT NULL, `_Time` TIME NOT NULL, `_Date` DATE NOT NULL' at line 1
    Those innocent fun games of the hallucination generation

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ENUM needs the possible values specified (like ENUM('foo', 'bar')), and VARCHAR needs the length specfied (like VARCHAR(23) ).

  • #3
    New Coder
    Join Date
    Oct 2002
    Location
    Ghent, Belgium
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Those innocent fun games of the hallucination generation


  •  

    Posting Permissions

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