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!

How to execute a procedure inside a package

Gayathri VenugopalMay 30 2016 — edited May 31 2016

I need to manually  call the procedure PROC_ENTRY_TIME for loading fresh data into TABLE_ENTRY_TIME.How do I do that:

CREATE OR REPLACE PACKAGE BODY PK_ENTRY_TIME IS

PROCEDURE PROC_ENTRY_TIME

AS

BEGIN

    execute immediate 'truncate table TABLE_ENTRY_TIME';

    insert into TABLE_ENTRY_TIME SELECT  TABLE_CASE.ID_NUMBER , max( TABLE_ACT_ENTRY.ENTRY_TIME )

FROM  SA.TABLE_CASE   TABLE_CASE INNER JOIN  SA.TABLE_ACT_ENTRY   TABLE_ACT_ENTRY

ON  TABLE_CASE.OBJID = TABLE_ACT_ENTRY.ACT_ENTRY2CASE

commit;

END  PROC_ENTRY_TIME;

This post has been answered by Gayathri Venugopal on May 30 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2016
Added on May 30 2016
7 comments
13,770 views