我試着用下面query.phpmyadmin不允許it.What IM我做錯了phpmyadmin創建表時顯示mysql錯誤?
CREATE TABLE main (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY(id),
dealername VARCHAR(32) NOT NULL,
product VARCHAR(32) NOT NULL,
type VARCHAR(16) NOT NULL,
date VARCHAR(16) NOT NULL,
desc VARCHAR(255) NOT NULL,
location VARCHAR(32) NOT NULL,
sublocation VARCHAR(32) NOT NULL,
address VARCHAR(255) NOT NULL,
phone1 VARCHAR(16) NOT NULL,
phone2 VARCHAR(16) NOT NULL,
auth VARCHAR(10) NOT NULL,
brands VARCHAR(255) NOT NULL,
lat VARCHAR(32) NOT NULL,
lon VARCHAR(32) NOT NULL
);
錯誤創建表: #1064 - 你在你的SQL語法錯誤; (id),dealername VARCHAR(32)NOT NULL,product VARCHAR(32)NOT NULL,在第2行輸入VAR'時使用正確的語法對應的MySQL服務器版本的手冊
謝謝..這與上述答案一起解決了它 – techno 2015-02-24 07:32:45