... PL /SQL programs even
between client and server PL /SQL programs. Prior to PL /SQL Release 2.3, you would have had to
fetch all data from the cursor, store it in PL /SQL variables (perhaps a PL /SQL ... this book is on standalone PL /SQL development, I present cursor variables as a
PL /SQL Release 2.3 enhancement. If you do have PL /SQL Release 2.2 and work with PL /SQL in a
host language environment, ... Variables
In PL /SQL Release 2.3, available with the release of Oracle Server Release 7.3, you can create and
use cursor variables. Unlike an explicit cursor, which names the PL /SQL work area for...
...
In native SQL, this select list may contain both columns and expressions (SQL functions on those
columns, constants, etc.). In PL /SQL, the select list of a SELECT may contain PL /SQL variables, ...
Cursor variables cannot be used with dynamic SQL (through use of the DBMS _SQL
package).
Previous: 6.11 SELECT
FOR UPDATE in Cursors
Oracle PL /SQL
Programming, 2nd Edition
Next: 6.13 Working ... SQL Cursor
Attributes" later in the chapter.
You can reference cursor attributes in your PL /SQL code, as shown in the preceding example, but
you cannot use those attributes inside a SQL...
... of options in PL /SQL for executing SQL, and all of them occur as some type of cursor.
Generally, there are two types of SQL that you can execute in PL /SQL: static and dynamic. SQL is
static if ... content of the SQL statement is determined at compile time. A SQL statement is dynamic
if it is constructed at runtime and then executed.
Dynamic SQL is made possible in PL /SQL only through ... through the use of the DBMS _SQL built-in package
(see
Appendix C, Built-In Packages). All other forms of SQL executed inside a PL /SQL program
represent static SQL; these forms of cursors are...
... category are all subtypes of NUMBER. They are
provided in ORACLE& apos;s SQL and in PL /SQL in order to offer compatibility with ANSI SQL, SQL/
DS, and DB2 datatypes. They have the same range of ... takes place.
Previous: 4.1 Identifiers Oracle PL /SQL
Programming, 2nd Edition
Next: 4.3 NULLs in PL/
SQL
4.1 Identifiers
Book Index
4.3 NULLs in PL /SQL
The Oracle Library
Navigation
Copyright ...
Previous: II. PL /SQL
Language Elements
Oracle PL /SQL
Programming, 2nd Edition
Next: 4.2 Scalar Datatypes
II. PL /SQL Language
Elements
Book Index
4.2 Scalar Datatypes
The Oracle Library
Navigation
...
... Previous: 1.1 What Is PL/
SQL?
Oracle PL /SQL
Programming, 2nd Edition
Next: 1.3 The Origins of
PL /SQL
1.1 What Is PL /SQL?
Book Index
1.3 The Origins of PL /SQL
The Oracle Library
Navigation
... 1.4 PL /SQL
Versions
Oracle PL /SQL
Programming, 2nd Edition
Next: 1.6 A Few of My
Favorite (PL /SQL) Things
1.4 PL /SQL Versions
Book Index
1.6 A Few of My Favorite
(PL /SQL) Things
The Oracle ...
Favorite (PL /SQL) Things
Oracle PL /SQL
Programming, 2nd Edition
Next: 2. PL /SQL Language
Fundamentals
1.6 A Few of My Favorite
(PL /SQL) Things
Book Index
2. PL /SQL Language
Fundamentals
The Oracle...
...
written in SQL* Forms, SQL* Reportwriter,
SQL* Plus, and SQL* Menu. While their PL /SQL
skills have progressed to meet the needs of specific
applications, most could expand both their PL /SQL
knowledge ... Oracle objects option)
PL /SQL is integrated tightly into Oracle& apos;s SQL language: you can execute SQL statements directly
from your procedural program. Conversely, you can also call PL /SQL ... with all of the hoopla over Java, PL /SQL is still the best way
to build programs to access data in Oracle7 and Oracle8 databases. After Oracle began using PL /SQL
to build its own tools for replication,...
... and Modifying PL /SQL Table Rows
Filling the Rows of a PL /SQL Table
Clearing the PL /SQL Table
PL /SQL Table Enhancements in PL /SQL Release 2.3
Working with PL /SQL Tables
A PL /SQL table is a one-dimensional, ... PL /SQL
Tables
Chapter 10
PL /SQL Tables
Next: 10.4 Declaring a PL/
SQL Table
10.3 PL /SQL Tables and DML Statements
Tables are PL /SQL constructs. PL /SQL is a linguistic extension of the Oracle ...
Collections
Oracle PL /SQL
Programming, 2nd Edition
Next: 10.3 PL /SQL Tables
and DML Statements
10.1 PL /SQL Tables and
Other Collections
Book Index
10.3 PL /SQL Tables and
DML Statements
The Oracle...
... or a number value. The Oracle Server and PL /SQL provide a number of different
character datatypes, including CHAR, VARCHAR, VARCHAR2, LONG, RAW, and LONG RAW. In
PL /SQL, the three different ... Character
Function Descriptions
Oracle PL /SQL
Programming, 2nd Edition
Next: 12. Date Functions
11.1 Character Function
Descriptions
Book Index
12. Date Functions
The Oracle Library
Navigation
... Built-In
Functions
Oracle PL /SQL
Programming, 2nd Edition
Next: 11.2 Character
Function Examples
III. Built-In Functions
Book Index
11.2 Character Function
Examples
The Oracle Library
Navigation
...
... printer.
Preference data
Information about the preferences of the user, such as "Display Toolbar" or "Automatically
pop up a list of values boxes."
Assuming an Oracle Forms-based ... is still needed, PL /SQL attempts to convert the data implicitly to
the datatypes needed to perform the operation. I recommend that you avoid allowing either the SQL
or PL /SQL languages to perform ... function, which
executes underlying code.
NOTE: In Oracle Version 6 and the earliest releases of the Oracle Server, when you
called SYSDATE, PL /SQL issued an implicit cursor to the database to...
... of PL /SQL.
●
Chapter 17, Calling PL /SQL Functions in SQL, describes how you can construct PL /SQL
functions and call them from SQL.
Previous: 14.3 Conversion
Function Examples
Oracle PL /SQL
Programming, ... a PL /SQL table
You can also store the date masks in a PL /SQL table (PL /SQL tables are explained fully in
Chapter
10, PL /SQL Tables). The PL /SQL table structure, available only with PL /SQL Version ...
advanced features of PL /SQL modules, including overloading and forward referencing.
Previous: IV. Modular
Code
Oracle PL /SQL
Programming, 2nd Edition
Next: 15.2 Review of PL/
SQL Block Structure
IV....
...
Previous: 15.3 The
Anonymous PL /SQL Block
Oracle PL /SQL
Programming, 2nd Edition
Next: 15.5 Functions
15.3 The Anonymous PL/
SQL Block
Book Index
15.5 Functions
The Oracle Library
Navigation
Copyright ... coded in PL/
SQL. While the trigger has a name, the
PL /SQL code itself is unnamed, hence
anonymous.
Script SQL* Plus and SQL* DBA Ad hoc programs and batch processing
scripts written in SQL* Plus ... supported by PL /SQL, including scalars like these:
●
VARCHAR2
●
NUMBER
●
BINARY_INTEGER
●
BOOLEAN
Functions can also return complex and composite datatypes, such as:
●
PL /SQL table (Oracle7 )
●...
... Stored
Functions in SQL
Chapter 17
Calling PL /SQL Functions in
SQL
Next: 17.5 Calling
Packaged Functions in SQL
17.4 Restrictions on PL /SQL Functions in SQL
Stored functions in SQL offer tremendous ... 16.5 Package
Data
Oracle PL /SQL
Programming, 2nd Edition
Next: 17. Calling PL /SQL
Functions in SQL
16.5 Package Data
Book Index
17. Calling PL /SQL
Functions in SQL
The Oracle Library
Navigation
...
Calling Stored Functions in
SQL
Chapter 17
Calling PL /SQL Functions in
SQL
Next: 17.4 Restrictions on
PL /SQL Functions in SQL
17.3 Requirements for Stored Functions in SQL
There are several requirements...
... Precedence
Chapter 17
Calling PL /SQL Functions in
SQL
Next: 17.8 Examples of
Embedded PL /SQL
17.7 Realities: Calling PL /SQL Functions in SQL
The ability to call PL /SQL functions in SQL has been around ...
Calling PL /SQL Functions
in SQL
Chapter 17
Calling PL /SQL Functions in
SQL
Next: V. New PL /SQL8
Features
17.8 Examples of Embedded PL /SQL
The more you think about stored functions in SQL, the ... Functions in SQL
Oracle PL /SQL
Programming, 2nd Edition
Next: 17.7 Realities:
Calling PL /SQL Functions
in SQL
17.5 Calling Packaged
Functions in SQL
Book Index
17.7 Realities: Calling PL/
SQL Functions...