Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logic for creating the procedure

Status
Not open for further replies.

zircon06

Technical User
Jan 8, 2007
81
Hi all.

I'm looking for looking for logic creation of procedure. I have procedure check_employeedetails. I want create this Procedure, execute and drop from schema.

Thanks in advance
 
Zircon said:
I have procedure check_employeedetails. I want create this Procedure, execute and drop from schema.
So, if you have the procedure, do you want to post it for us to read? If you want to create, execute, and drop, what is preventing you from doing so?


What help do you want from us?

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
Hi santa,

I'm looking procedure to do following



create check_employee details
Execute this procedure
Drop this procedure after this execution

all in one step process

Thanks
 
With the information you provide, here is the most code I can offer:
Code:
SQL> CREATE PROCEDURE CHECK_EMPLOYEE_DETAILS (<argument(s)>) IS
BEGIN
    <code>
END;
/

SQL> exec CHECK_EMPLOYEE_DETAILS (<argument(s)>)
SQL> DROP PROCEDURE CHECK_EMPLOYEE_DETAILS;

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
Zircon,
SantaMufasa provided exactly the code for what you asked.
If your goal is to execute some PL/SQL-code without having a permanent procedure for that task, an anonymous block may fit your needs better. Syntax is:
Code:
DECLARE
 ... -- variable definitions
BEGIN
 ... -- your code to check the details
END;
/

Stefan
 
Thanks for santa!!!! and stefan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top