2014-03-06 74 views

回答

-1

存儲過程實例爲代理

CREATE OR REPLACE PROCEDURE GET_AGENT 
    (V_CUR IN OUT SYS_REFCURSOR) 
    AS 
    BEGIN 
     OPEN V_CUR FOR SELECT * FROM AGENT; 
    END GET_EMPLOYEES; 



INSERT INTO AGENT VALUES(:AGENTID,:AGENTNAME) 



DELETE FROM AGENT WHERE AGENTID=:AGENTID 



UPDATE AGENT SET AGENTNAME=:AGENTNAME WHERE AGENTID=:AGENTID 




UPDATE AGENT SET AGENTNAME=:AGENTNAME,..... WHERE ROWID=:RECORD_ROWID 
DELETE FROM AGENT WHERE ROWID=:RECORD_ROWID