pl/sql 代碼: create or replace package "scott"."pkg_test" as type myrctype is ref cursor; function get(strbarcode varchar) return myrctype; end pkg_test;
create or replace package body "scott"."pkg_test" as function get(strbarcode in varchar) return myrctype is rc myrctype; begin open rc for strbarcode; return rc; end get; end pkg_test; -------------------------------------------------------------------------------------------------------- vb 代碼: private sub command1_click() on error goto cursorerr: dim cnn as new adodb.connection dim rst as new adodb.recordset dim cmd as new adodb.command