Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am a newbie to oracle stored procedure and package.
I would like to learn about it and why we prefer SP instead of inline query.
Whats the use of putting SP in package.
I have tried to read a few articles but i dint clearly understand the reason to be frank.

Can you please provide an example of insert/delete/update/select query in SP?

Thanks & Regards
Akshay.
Posted

1 solution

A procedure or function is a schema object that consists of a set of SQL statements and other PL/SQL constructs, grouped together, stored in the database, and executed as a unit to solve a specific problem or perform a set of related tasks.

Packages encapsulate related procedures, functions, and associated cursors and variables together as a unit in the database.

For rest of the questions please refer to the Oracle [documentation] and [tutorial].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900