16.10 - Resetting the Session Constraint - Teradata Database

Teradata Database Security Administration

Product
Teradata Database
Release Number
16.10
Release Date
June 2017
Content Type
Administration
Security
Publication ID
B035-1100-161K
Language
English (United States)

Users have the option to change the default constraint values available for a session using the SET SESSION CONSTRAINT statement.

Based on Example: Loading Tables without User OVERRIDE Privileges, U1 might reset the session default Countries constraint:

SET SESSION CONSTRAINT = Countries (UK, Canada);

The session constraint value is changed from the ‘E0’xb shown above to '60'xb (hex representation of 01100000). Subsequent inserts during the session default to '60'xb for the Countries constraint column.

You can display the hex string for the default constraint values using the HELP SESSION CONSTRAINT statement.