ORA-00933: SQL command not properly ended

后端 未结 11 929
遇见更好的自我
遇见更好的自我 2020-12-03 22:54

I\'m using OLEDB provider for ADO.Net connecting to an Oracle database. In my loop, I am doing an insert:

insert into ps_tl_compleave_tbl values(\'2626899\'         


        
11条回答
  •  借酒劲吻你
    2020-12-03 23:34

    In Oracle the semi-colon ';' is only used in sqlplus. When you are using ODBC/JDBC, OLEDB, etc you don't put a semi-colon at the end of your statement. In the above case you are actually executing 2 different statements so the best way to handle the problem is use 2 statements instead of trying to combine into a single statement since you can't use the semi-colon.

提交回复
热议问题