oracle ORA-00917: 缺少逗号错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25602356/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 00:35:26  来源:igfitidea点击:

ORA-00917: missing comma error

oracleinsert

提问by Ashok

Below is my query in ORACLE which is getting ORA-00917: missing commaerror.

下面是我在 ORACLE 中的查询ORA-00917: missing comma出现错误。

INSERT INTO user_account_statement(
   statement_id,
   session_key,
   login_id,
   user_id,
   account_number,
   from_date,
   to_date,
   ipaddress,
   create_date_time
) 
VALUES(1070,
      'fe79e0345986b5a439c26f731234868b53f877366f529',
      '2335',
      '204254',
      '108142',
       to_date('2014-08-18','yyyy-mm-dd'),
       to_date('2014-08-23','yyyy-mm-dd'),
       '106.79.126.249',
       to_date('2014-08-23 16:45:06','yyyy-mm-dd hh24:mi:ss');

I don't know where it requires comma now.

我不知道现在哪里需要逗号。

回答by lpg

Looks like there is a missing )at the end :

看起来最后有一个缺失)

INSERT INTO user_account_statement(statement_id,session_key,login_id,user_id,
        account_number,from_date,to_date,ipaddress,create_date_time)
   VALUES(1070,'fe79e0345986b5a439c26f731234868b53f877366f529','2335','204254','108142',
          to_date('2014-08-18','yyyy-mm-dd'),to_date('2014-08-23','yyyy-mm-dd'),
                  '106.79.126.249',to_date('2014-08-23 16:45:06','yyyy-mm-dd hh24:mi:ss'));