2.348 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, 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, or UPDATE
statement that references table column values in a RETURNING,
SET, or WHERE clause.
Values
-
TRUEA 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
-
-
FALSE-
A user with the
DELETEprivilege on the target table of aDELETEstatement may reference any column of that target table in theWHEREclause of theDELETEstatement. -
A user with the
UPDATEprivilege on the target table of anUPDATEstatement may reference any column of that 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 any column of that target table in theRETURNINGclause.
-