1
ALTER TABLE  `The Watch Desk Articles Index` ADD  `Subject` VARCHAR CHARACTER SET utf8                 
COLLATE utf8_general_mysql500_ci NOT NULL AFTER `none` ,
ADD FULLTEXT (

`Subject`
)


#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 'CHARACTER SET utf8 COLLATE  
utf8_general_mysql500_ci NOT NULL AFTER `none`,  ADD ' at line 1 

変更を求めるこのエラーは何ですか? phpMyAdmin を使用して選択ボックスを含むテーブル列を作成していますが、このエラーが発生し続けます。

4

1 に答える 1

1

少なくとも、varcharフィールドのサイズを指定する必要があります。たとえば、最大255文字を許可します。

 ALTER TABLE  `The Watch Desk Articles Index` ADD  `Subject` VARCHAR(255) 
     CHARACTER SET  ...rest of stuff here...
于 2012-11-28T21:27:38.363 に答える