Example: Loading Tables with User OVERRIDE Privileges - Analytics Database - Teradata Vantage

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantage™

When a user with OVERRIDE privileges uses an INSERT or UPDATE to load a table that has one or more non-hierarchical constraint columns, the system does not calculate and insert the needed hex values. The user must supply the hex values for each non-hierarchical constraint column as part of the load script.

For example:

  1. Calculate the binary string for the bit position that represents the constraint values, as shown in Example: Loading Tables without User OVERRIDE Privileges.
  2. Convert the binary string to a hex value.
  3. Load the hex values into the source data column(s).
  4. Specify the column(s) containing the hex data in the load script.
  5. When you load the destination table, the hex values are entered into the constraint columns.
    The database checks all constraint column input data for validity, by internally converting the hex string to binary and checking the indicated bit position against dictionary rows in DBC.ConstraintValues, before inserting them into the target table.