MySQL查詢mysql語法錯誤爲什麼?
CREATE TABLE IF NOT EXISTS 'sadakin'.'gcm_users' (
'id' int(11) NOT NULL AUTO_INCREMENT ,
'gcm_regid' text,
'name' varchar(50) NOT NULL ,
'email' varchar(255) NOT NULL ,
'imei' varchar(20) NOT NULL ,
'created_at' timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ,
PRIMARY KEY ('id') ,
KEY 'imei' ('imei')
) ENGINE = InnoDB DEFAULT CHARSET = latin1 AUTO_INCREMENT =1;
錯誤消息:
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 ''sadakin'.'gcm_users' (
'id' int(11) NOT NULL AUTO_INCREMENT ,
'gcm_' at line 1
我沒有找到錯誤。幫我!
基本錯誤。謝謝 – sadakin