SQL Error: ORA-00917: missing comma 00917. 00000 - "missing comma" *Cause: *Action:

SQL Error: ORA-00917: missing comma 00917. 00000 - "missing comma" *Cause: *Action:

我正在尝试向产品 table 添加一个新行:

INSERT INTO Products_mgs( product_id,category_id,product_code,product_name,
description,list_price,discount_percent,date_added)
VALUES ( 11, 4,'YDP162R','Yamaha Arius YDP162R Traditional Console Style Digital Piano',
'The best keyboard on the market. Offers excellent sound rendering
 that truly separates it from the rest of the pack.',1599.99,10,'2020-10-25'()));

但我不断收到此错误消息:

Error at Command Line : 23 Column : 77 Error report - SQL Error: ORA-00917: missing comma 00917. 00000 - "missing comma" *Cause:
*Action:

语句末尾有多余的括号,没有意义。我还建议对 date_added 列使用显式文字日期,而不是依赖隐式转换(当然,假设此列是 date 数据类型)。

所以:

INSERT INTO Products_mgs (
    product_id, 
    category_id, 
    product_code, 
    product_name, 
    description, 
    list_price, 
    discount_percent, 
    date_added
) VALUES (
    11, 
    4, 
    'YDP162R', 
    'Yamaha Arius YDP162R Traditional Console Style Digital Piano',
    'The best keyboard on the market. Offers excellent sound rendering that truly separates it from the rest of the pack.',
    1599.99,
    10,
    DATE '2020-10-25'   --> literal date
);  -- trailing parentheses removed