|
| ||||||||||
| Tags: begin section, cursor, end section, functions, modules, package |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Packages in oracle database
|
|
#2
| ||||
| ||||
| Packages in oracle database Packages: A package is constructed using the collection of some procedures, functions, variables and SQL statements which is treated as a single unit.A package having two sections : 1. Package Specification 2. Package Body. The first part of the package contains some declaration like variables ,types,exceptions,cursor ,etc and on other hand the second part of the package body contains some valuable code that builds a package. |
|
#3
| |||
| |||
| Packages in oracle database Creating specification of Package: A package specification act as an interface for package.It contains some declaration of variable and required specification for body construction. The syntax would be as follows; Code: PACKAGE Package_name IS [Declaration of variables and types] [specification of cursor] [specification of modules] END [Package_name]; |
|
#4
| ||||
| ||||
| Packages in oracle database Creating package body: Package body holds all the code and implement the subprograms, queries. It generate the some action with the help of specification packages and helps to retrieve the required information through the constructed package. The syntax would be as follows : Code: PACKAGE BODY Package_name
IS
[Declaration of variables and types]
[specification and SELECT statement of cursor]
[specification and body of modules]
[BEGIN
executable statements ]
[EXCEPTION exception handlers]
END [Package_name]; |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Packages in oracle database" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Joins in oracle database | Adriana_andros | Software Development | 5 | 11-02-2010 07:53 PM |
| Dynamic SQL in Oracle database | Adriana_andros | Software Development | 5 | 11-02-2010 06:49 PM |
| Cursor in oracle database | Ainsley | Software Development | 5 | 11-02-2010 05:24 PM |
| The synonyms in oracle database | Norse | Software Development | 4 | 02-02-2010 09:46 PM |
| Oracle Announces TimesTen In-Memory Database 11g and In-Memory Database Cache 11g | prakashseth | Web News & Trends | 1 | 30-07-2009 04:58 PM |