Home » SQL & PL/SQL » SQL & PL/SQL » PL/SQL package
PL/SQL package [message #19103] Thu, 28 February 2002 06:20 Go to next message
Joan
Messages: 36
Registered: February 2002
Member
Hi Have big PL/SQl procedure which I need to execute at the end of the month. How do I wrap my entire procedure to an if statement to execute when it is the end of the month? I would like this to be part of the package instead of being called outside of the package.

Thanks
Re: PL/SQL package [message #19106 is a reply to message #19103] Thu, 28 February 2002 06:59 Go to previous messageGo to next message
Jon
Messages: 483
Registered: May 2001
Senior Member
IF LAST_DAY(SYSDATE) - SYSDATE = 0 THEN
.
.
.
END IF;
Re: PL/SQL package [message #19108 is a reply to message #19103] Thu, 28 February 2002 07:03 Go to previous messageGo to next message
pratap kumar tripathy
Messages: 660
Registered: January 2002
Senior Member
create a database job and set the interval to one month
Re: PL/SQL package [message #19120 is a reply to message #19108] Thu, 28 February 2002 23:08 Go to previous message
THA
Messages: 26
Registered: February 2002
Junior Member
i dont think it is a good practical solution. then you won't have any control over the process.
Previous Topic: dbms_sql package
Next Topic: one column into multiple rows
Goto Forum:
  


Current Time: Tue May 07 22:16:29 CDT 2024