Warnung: file_put_contents(/home/www/web1/html/php_dev/test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web1/html/php_dev/sys/lib.activity.php (Zeile 58)
Syntax Error in CREATE [Archiv] - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr

- Ad -
php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
Syntax Error in CREATE


 
Sky
14-12-2001, 21:06 
 
What's wrong?


CREATE TABLE catlinks (
id INT UNSIGNED DEFAULT '0' not null AUTO_INCREMENT,
song_id INT UNSIGNED not null ,
description VARCHAR not null ,
link VARCHAR not null ,
user_id MEDIUMINT UNSIGNED not null ,
PRIMARY KEY (id), UNIQUE (id)
)

MySQL said: You have an error in your SQL syntax near 'not null , link VARCHAR not null , user_id MEDIUMINT UNSIGNED not null , PRIM' at line 1


MySQL 3.23.40, PHPMyAdmin 2.2.0rc1

 
Berni
14-12-2001, 21:12 
 
du hast keinen Wert für VARCHAR angegeben!

CREATE TABLE catlinks (
id INT UNSIGNED DEFAULT '0' not null AUTO_INCREMENT,
song_id INT UNSIGNED not null ,
description VARCHAR (100) not null ,
link VARCHAR (100) not null ,
user_id MEDIUMINT UNSIGNED not null ,
PRIMARY KEY (id), UNIQUE (id)
)

und es geht. :)

Cu
berni

 
Sky
14-12-2001, 21:16 
 
Yup, vielen Dank! :)

- -

Alle Zeitangaben in WEZ +2. Es ist jetzt 16:42 Uhr.