Restrictions on Record Inserts and Updates
These restrictions apply to record inserts and updates:
-
Record variables are allowed only in these places:
-
On the right side of the
SET
clause in anUPDATE
statement -
In the
VALUES
clause of anINSERT
statement -
In the
INTO
subclause of aRETURNING
clause
Record variables are not allowed in a
SELECT
list,WHERE
clause,GROUP
BY
clause, orORDER
BY
clause. -
-
The keyword
ROW
is allowed only on the left side of aSET
clause. Also, you cannot useROW
with a subquery. -
In an
UPDATE
statement, only oneSET
clause is allowed ifROW
is used. -
If the
VALUES
clause of anINSERT
statement contains a record variable, no other variable or value is allowed in the clause. -
If the
INTO
subclause of aRETURNING
clause contains a record variable, no other variable or value is allowed in the subclause. -
These are not supported:
-
Nested
RECORD
types -
Functions that return a
RECORD
type -
Record inserts and updates using the
EXECUTE
IMMEDIATE
statement.
-