Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Add a Procedure to an Existing Package

User_GVHF4Sep 30 2013 — edited Sep 30 2013

I have a package that contains one procedure; how do I add another procedure to the package?

CREATE OR REPLACE PACKAGE  fubar
AS

PROCEDURE  insert_MyYempTable
(
   sUserID       IN       VARCHAR2
,  in_Location   IN       VARCHAR2
)
;

END  fubar;

CREATE OR REPLACE PACKAGE BODY  fubar
AS

PROCEDURE  insert_MyTempTable
(
   sUserID       IN       VARCHAR2
,  in_Location   IN       VARCHAR2
)
IS
BEGIN

    INSERT INTO MyTempTable(City, State, Zip)
                    SELECT  city, state, zip
      From    MyTable1
                    WHERE   UserID    = sUserID
          commit; 
END  insert_MyTempTable;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 28 2013
Added on Sep 30 2013
5 comments
4,287 views