ORACLE AND VB6 CAN ANYBODY HELP ME PLZ
hi All,
I have following "package" and "stored procedure",I want to run this procedure from vb6, can anybody tell me what will be the "vb6 code" for the following procedure
----------------------------------------------
CREATE OR REPLACE PACKAGE BODY pgarage AS
PROCEDURE prcempmst(empno IN VARCHAR2, empname IN VARCHAR2, basicsal IN INT, POSITION IN VARCHAR2, p_recordset OUT sys_refcursor) AS
empmast empmst%rowtype;
BEGIN
OPEN p_recordset FOR SELECT*FROM EMPMST WHERE empid=empno;
fetch p_recordset into empmast;
IF empmast IS NULL THEN
INSERT
INTO empmst
VALUES(empid, empname, basicsal, POSITION);
ELSE
UPDATE empmst
SET empid = empid,
empname = empname,
basicsal = basicsal,
grade = POSITION;
END IF;
END prcempmst;
end pgarage
-------------------------------------------------
|