ORA-00900: invalid SQL statement- when run a procedure in oracle 10g

前端 未结 3 749
抹茶落季
抹茶落季 2020-12-06 04:33

I am using Oracle 10g database and trying to run a procedure using SQL commands.

create or replace procedure \"exam\" is
begin
  DBMS_OUTPUT.PUT_LINE(\'Test\         


        
3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-06 05:31

    See: Syntax error while trying to call an Oracle package using ODBC in C#

    You have to put "{" and "}" before the command. Example:

        processListCmd.CommandType = CommandType.StoredProcedure;
        processListCmd.CommandText = "{ call rep_invnr_proclist }";
        processListCmd.ExecuteNonQuery();
    

提交回复
热议问题