无法在SQL中找到错误

时间:2014-11-02 10:01:42

标签: mysql sql

我无法在此SQL中找到错误。

INSERT INTO "mod_vehicles_models" (make, name, name_slug, fuel, mass, cylinder_capacity, cylinder_count, energy_label, emission, usage_avg, usage_city, usage_high, capacity_pull_weight, capacity_carry_weight) VALUES ("alfa romeo","alfa romeo 147","alfa-romeo/alfa-romeo-147","benzine","1165","1598","4","","192","8,1","11,1","6,3","1300","")

2 个答案:

答案 0 :(得分:1)

不带引号写表名:

INSERT INTO mod_vehicles_models(make, name, name_slug, fuel, mass,
     cylinder_capacity, cylinder_count, energy_label, emission, usage_avg,
     usage_city, usage_high, capacity_pull_weight, capacity_carry_weight)
     VALUES ("alfa romeo","alfa romeo
     147","alfa-romeo/alfa-romeo-147","benzine","1165","1598","4","","192","8,1","11,1","6,3","1300","")

答案 1 :(得分:0)

INSERT INTO“mod_vehicles_models” - 从表名中删除引号