CREATE TABLE IF NOT EXISTS `pset7`.`portfolio`(
`id` int(10) unsigned NOT NULL,
`symbol` varchar(12) NOT NULL,
`shares` double(50) NOT NULL,
PRIMARY KEY (`id`)
)ENGINE=InnoDB;
這是錯誤:以下查詢獲得#1064錯誤?
ERROR : #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 ') NOT NULL, PRIMARY KEY >(
id
))ENGINE=InnoDB AUTO_INCREMENT=8' at line 1
我沒有得到什麼語法錯誤是,我對SQL校正檢查?
MySQL版本 - 5.5.35-0ubuntu0.13.10.2
嘗試double'後'移除支架。 '股票雙非空,' – Vesper
@Vesper,謝謝! – amitfreeman