2011-01-25 73 views
0

在phpMyAdmin,我進入:的MySQL創建一個表字符集

CREATE TABLE ch 
ucs2 CHAR(3) CHARACTER SET ucs2, 
gb2312 CHAR(3) CHARACTER SET gb2312 
test3 CHAR(4) CHARACTER SET utf8; 

,它給了我一個語法錯誤。我在這裏做錯了什麼?

回答

2

您忘記了括號:

CREATE TABLE ch(
ucs2 CHAR(3) CHARACTER SET ucs2, 
gb2312 CHAR(3) CHARACTER SET gb2312, 
test3 CHAR(4) CHARACTER SET utf8 
); 
+0

〜任職的感謝! – David19801 2011-01-25 10:51:57

相關問題