Call Oracle package function using Odbc from C#

前端 未结 4 1508
隐瞒了意图╮
隐瞒了意图╮ 2021-01-24 16:47

I have a function defined inside an Oracle package:

CREATE OR REPLACE PACKAGE BODY TESTUSER.TESTPKG as
  FUNCTION testfunc(n IN NUMBER) RETURN NUMBER as
  begin
         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-24 17:13

    try

    OdbcCommand command = new OdbcCommand("begin ? := TESTUSER.TESTPKG.testfunc(?) end;", connection);
    

提交回复
热议问题