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

Part Number E25519-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
PDF · Mobi · ePub
LNPLS99950

INSERT Statement Extension

The PL/SQL extension to the SQL INSERT statement lets you specify a record name in the values_clause of the single_table_insert instead of specifying a column list in the insert_into_clause. Effectively, this form of the INSERT statement inserts the record into the table; actually, it adds a row to the table and gives each column of the row the value of the corresponding record field.

See Also:

Oracle Database SQL Language Reference for the syntax of the SQL INSERT statement

LNPLS1613Topics

Syntax

LNPLS1614insert_into_clause ::=

Description of insert_into_clause.gif follows
Description of the illustration insert_into_clause.gif

LNPLS1615values_clause ::=

Description of values_clause.gif follows
Description of the illustration values_clause.gif

Semantics

LNPLS1616insert_into_clause

LNPLS1617dml_table_expression_clause

Typically a table name. For complete information, see Oracle Database SQL Language Reference.

LNPLS1618t_alias

An alias for dml_table_expression_clause.

LNPLS1633values_clause

LNPLS1634record

Name of a record variable of type RECORD or %ROWTYPE. record must represent a row of the item explained by dml_table_expression_clause. That is, for every column of the row, the record must have a field with a compatible data type. If a column has a NOT NULL constraint, then its corresponding field cannot have a NULL value.

See Also:

Oracle Database SQL Language Reference for the complete syntax of the INSERT statement

Examples

Related Topics

LNPLS1635In this chapter:

LNPLS1636In other chapters:

Reader Comment

   

Comments, corrections, and suggestions are forwarded to authors every week. By submitting, you confirm you agree to the terms and conditions. Use the OTN forums for product questions. For support or consulting, file a service request through My Oracle Support.

Hide Navigation

Quick Lookup

Database Library · Master Index · Master Glossary · Book List · Data Dictionary · SQL Keywords · Initialization Parameters · Advanced Search · Error Messages

Main Categories

This Document

New and changed documents:
RSS Feed HTML RSS Feed PDF