5.17 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
SETclause in anUPDATEstatement -
In the
VALUESclause of anINSERTstatement -
In the
INTOsubclause of aRETURNINGclause
Record variables are not allowed in a
SELECTlist,WHEREclause,GROUPBYclause, orORDERBYclause. -
-
The keyword
ROWis allowed only on the left side of aSETclause. Also, you cannot useROWwith a subquery. -
In an
UPDATEstatement, only oneSETclause is allowed ifROWis used. -
If the
VALUESclause of anINSERTstatement contains a record variable, no other variable or value is allowed in the clause. -
If the
INTOsubclause of aRETURNINGclause contains a record variable, no other variable or value is allowed in the subclause. -
These are not supported:
-
Nested
RECORDtypes -
Functions that return a
RECORDtype -
Record inserts and updates using the
EXECUTEIMMEDIATEstatement.
-