The error in this SQL statement is that "ORDER" is a reserved keyword in MySQL and cannot be used as a table name without enclosing it in backticks. Therefore, the line "CREATE TABLE Order(" should be changed to "CREATE TABLE Order(" to avoid errors.

这段sql哪里有错误DROP TABLE IF EXISTS Order;CREATE TABLE Order ID INT NOT NULL AUTO_INCREMENT COMMENT ID ORDER_TIME DATE COMMENT 下单时间 PRICE_SUM DECIMAL246 COMMENT 总金额 STATE INT COMME

原文地址: http://www.cveoy.top/t/topic/bzrv 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录