Guest User

Untitled

a guest
Aug 29th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. <oracle.dataaccess.client>
  2. <settings>
  3. <add name="&quot;HMS&quot;.&quot;PROJECT_INSERT&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'" />
  4. <add name="&quot;HMS&quot;.&quot;PROTOCOL_INSERT&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'" />
  5. <add name="&quot;HMS&quot;.&quot;CONTAINER_INSERT&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'" />
  6. <add name="&quot;HMS&quot;.&quot;CONTONST_INSERT&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'" />
  7. <add name="&quot;HMS&quot;.&quot;TYPE_INSERT&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'" />
  8. <add name="&quot;HMS&quot;.&quot;PROPERTY_INSERT&quot;.RefCursor.OUTPARAM" value="implicitRefCursor bindinfo='mode=Output'" />
  9. </settings>
  10. </oracle.dataaccess.client>
  11.  
  12. ===================
  13.  
  14. create or replace
  15. PROCEDURE CONTAINER_INSERT
  16. (
  17. ProtocolID_IN IN number,
  18. ParentcontainerID_IN IN number,
  19. TypeID_IN IN number,
  20. ContainerDesc_IN IN varchar2,
  21. outParam OUT SYS_REFCURSOR
  22. )
  23. IS
  24. ContainerID_OUT NUMBER;
  25. BEGIN
  26. INSERT into container (protocolid,parentcontainerid,typeid,descr)
  27. values (ProtocolID_IN,ParentcontainerID_IN, TypeID_IN, ContainerDesc_IN) returning containerid into ContainerID_OUT;
  28.  
  29. OPEN outParam FOR SELECT ContainerID_OUT as "ContainerID_OUT" FROM DUAL;
  30. END;
  31.  
  32. ==================
Advertisement
Add Comment
Please, Sign In to add comment