Why do I keep getting INSERT error: has more targets than expression

Why do I keep getting INSERT error: has more targets than expression

又是我,

这次我在 pg admin sql 数据库上工作,我试图弄清楚为什么会出现此错误,我有一个插入语句,但它一直说错误:INSERT 有更多目标比表达,我真的不知道为什么我会收到这个错误,所以我真的不知道要采取什么步骤来解决这个问题。

INSERT INTO automobiles(id, make, model, year, owner, msrp, purchase_date) VALUES(
1,
'Ferarri'
'F40'
'1987'
''
'1,690,000'
'');

以上是我插入的声明。

ERROR:  INSERT has more target columns than expressions
LINE 23: INSERT INTO automobiles(id, make, model, year, owner, msrp, ...
                                           ^
********** Error **********

ERROR: INSERT has more target columns than expressions
SQL state: 42601
Character: 401

这是错误,错误是围绕模型

我也在使用 pg admin

感谢您的帮助!

您需要用逗号分隔插入的值

INSERT INTO automobiles
(
   id,
   make,
   model,
   year,
   owner,
   msrp,
   purchase_date
)
VALUES
(
   1,
   'Ferarri',
   'F40',
   '1987',
   '',
   '1,690,000',
   ''
);