2.392 SQL92_SECURITY
SQL92_SECURITY specifies whether users must have been
granted the SELECT privilege on a table in order to specify certain clauses
in a DELETE, INSERT, MERGE, or
UPDATE statement.
| Property | Description |
|---|---|
|
Parameter type |
Boolean |
|
Default value |
|
|
Modifiable |
No |
|
Modifiable in a PDB |
Yes |
|
Range of values |
|
|
Basic |
No |
The SQL standard specifies that security administrators should be able to require
that users have the SELECT privilege on a table when executing a
DELETE, INSERT, MERGE, or
UPDATE statement that references table column values in certain
clauses. This requirement is enforced when SQL92_SECURITY is set to
TRUE.
Values
-
TRUE-
A user must have the
SELECTprivilege on the target table in order to reference its columns in:-
The
WHEREclause of aDELETEorUPDATEstatement -
The right hand side of an assignment in the
SETclause of anUPDATEstatement -
The
RETURNINGclause of aDELETE,INSERT, orUPDATEstatement
-
-
A user must have the
SELECTprivilege on the source and target tables of aMERGEstatement in order specify theRETURNINGclause. -
A user must have the
SELECTprivilege on the target table of aMERGEstatement in order specify theDELETEclause, or theWHEREclause of theWHENMATCHEDTHENUPDATEclause.
-
-
FALSE-
A user with the
DELETEprivilege on the target table of aDELETEstatement may reference columns of the target table in theWHEREclause of theDELETEstatement. -
A user with the
UPDATEprivilege on the target table of anUPDATEstatement may reference columns of the target table in theWHEREclause or on the right hand side of any assignment in theSETclause of theUPDATEstatement. -
A user with the
READorSELECTprivilege on the target table of aDELETE,INSERT, orUPDATEstatement may reference columns of the target table in theRETURNINGclause. -
A user with the
READorSELECTprivilege on the source and target tables of aMERGEstatement may specify theRETURNINGclause. -
A user with the
DELETEprivilege on the target table of aMERGEstatement may specify theDELETEclause. -
A user with the
UPDATEprivilege on the target table of aMERGEstatement may specify theWHEREclause of theWHENMATCHEDTHENUPDATEclause.
-