SQL错误:ORA-00917:缺少逗号00917。00000-“第;缺少逗号“*原因:*行动:

SQL错误:ORA-00917:缺少逗号00917。00000-“第;缺少逗号“*原因:*行动:,sql,oracle,insert-statement,Sql,Oracle,Insert Statement,我正在尝试使用以下内容向Products表添加新行: 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 b

我正在尝试使用以下内容向Products表添加新行:

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'()));
但我一直收到这样的错误信息:

命令行错误:23列:77错误报告-SQL错误: ORA-00917:缺少逗号 91700000-“缺少逗号” *原因:
*行动:


语句末尾有多余的括号没有意义。我还建议对添加的
date\u列使用显式文字日期,而不是依赖隐式转换(当然,假设此列为
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