Foute syntax

Status
Niet open voor verdere reacties.

joanne

Terugkerende gebruiker
Lid geworden
31 mrt 2001
Berichten
1.300
Krijg deze foutmelding. Waar zit ik precies fout?

#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''actu','musique','cinéma') NOT NULL AUTO_INCREMENT, `titel` VAR


CREATE TABLE `tabel` (

`id` SMALLINT( 'actu', 'musique', 'cinéma' ) NOT NULL AUTO_INCREMENT ,
`titel` VARCHAR( 128 ) NOT NULL ,
`auteur` VARCHAR( 32 ) NOT NULL ,
`inleiding` TEXT NOT NULL ,
`beschrijving` TEXT NOT NULL ,
`hoofdtekst` LONGTEXT NOT NULL ,
`afbeelding` VARCHAR( 128 ) NOT NULL ,
`thema` ENUM NOT NULL ,
`categorie` ENUM( 'interview', 'chronique', 'critique' ) NOT NULL ,
`datum` DATE NOT NULL ,
`ja of nee` ENUM( 'ja', 'neen' ) NOT NULL
) TYPE = MYISAM
 
Kijk s naar volgende regel:
Code:
`id` SMALLINT( 'actu', 'musique', 'cinéma' ) NOT NULL AUTO_INCREMENT ,
Je wil een veld 'id' aanmaken, van type SMALLINT, maar ipv een lengte mee te geven, geef je 3 waardes mee? Denk dat daar je fout in zit :)
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan