[問題] 如何在C#呼叫 Oracle 的Store Procedure??

看板C_Sharp作者 (春秋兩不沾)時間17年前 (2008/11/19 20:23), 編輯推噓0(003)
留言3則, 1人參與, 最新討論串1/1
如題,請問各位高手 如果我今天有一支 Oracle 的Store Procedure,叫做 test_procedure, 然後他的input參數是in_string(oracle data type 是varchar2), output參數是out_string(oracle data type 是varchar2)。 請問這樣,要如何使用這支procedure呢? -- 三更燈火五更雞,疾筆振書孤影隨。潮浪不識書中趣,惟有陸翁笑我顛。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 219.84.233.224

11/19 20:41, , 1F
利用OracleCommand CommandType為StoredProcedure
11/19 20:41, 1F

11/19 20:42, , 2F
並加入2個OracleParameter Direction分別為Input
11/19 20:42, 2F

11/19 20:44, , 3F
和ReturnValue 然後再Execute
11/19 20:44, 3F
文章代碼(AID): #1990LMR5 (C_Sharp)