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
SELECT
privilege on the target table in order to reference its columns in:-
The
WHERE
clause of aDELETE
orUPDATE
statement -
The right hand side of an assignment in the
SET
clause of anUPDATE
statement -
The
RETURNING
clause of aDELETE
,INSERT
, orUPDATE
statement
-
-
A user must have the
SELECT
privilege on the source and target tables of aMERGE
statement in order specify theRETURNING
clause. -
A user must have the
SELECT
privilege on the target table of aMERGE
statement in order specify theDELETE
clause, or theWHERE
clause of theWHEN
MATCHED
THEN
UPDATE
clause.
-
-
FALSE
-
A user with the
DELETE
privilege on the target table of aDELETE
statement may reference columns of the target table in theWHERE
clause of theDELETE
statement. -
A user with the
UPDATE
privilege on the target table of anUPDATE
statement may reference columns of the target table in theWHERE
clause or on the right hand side of any assignment in theSET
clause of theUPDATE
statement. -
A user with the
READ
orSELECT
privilege on the target table of aDELETE
,INSERT
, orUPDATE
statement may reference columns of the target table in theRETURNING
clause. -
A user with the
READ
orSELECT
privilege on the source and target tables of aMERGE
statement may specify theRETURNING
clause. -
A user with the
DELETE
privilege on the target table of aMERGE
statement may specify theDELETE
clause. -
A user with the
UPDATE
privilege on the target table of aMERGE
statement may specify theWHERE
clause of theWHEN
MATCHED
THEN
UPDATE
clause.
-