Skip Headers
Oracle® Database PL/SQL Language Reference
11g Release 2 (11.2)

Part Number E10472-05
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

%ROWTYPE Attribute

The %ROWTYPE attribute lets you declare a record that represents a row of a database table or view: For every column of the row, the record has a field with the same name and data type.

The record fields do not inherit the constraints or initial values of the corresponding columns.

If the structure of the row changes, the structure of the record changes accordingly.

Topics:

Syntax

%rowtype_attribute ::=

rowtype_attribute
Description of the illustration rowtype_attribute.gif

Semantics

cursor_name

The name of an explicit cursor.

cursor_variable_name

The name of a strongly typed cursor variable.

table_name

The name of a database table or view that is accessible when the declaration is elaborated.

Examples

Related Topics

In this chapter:

In other chapters: