大家好,我想在 Mysql 中添加列。
下面给出了我的 Sql 查询
CREATE TABLE `mtrans`.`order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`order_date` date NOT NULL,
`order_by` varchar(50) NOT NULL,
`amount` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
但是当我再添加一列时,它会给出一些类似的错误。
我的错误日志如下
Error executing SQL commands to update table.
MySQL Error Nr. 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 'AFTER `amount`' at line 1