Example: Updating a Table with an Implicit Isolated Load Operation - Advanced SQL Engine - Teradata Database

SQL Data Manipulation Language

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
vjt1596846980081.ditamap
dita:ditavalPath
vjt1596846980081.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantageā„¢

For information on defining a load isolated table, see the WITH ISOLATED LOADING option for CREATE TABLE and ALTER TABLE in Teradata Vantageā„¢ - SQL Data Definition Language Syntax and Examples, B035-1144.

Following is the table definition for the example.
CREATE TABLE ldi_table1,
     WITH CONCURRENT ISOLATED LOADING FOR ALL
     (a INTEGER,
      b INTEGER,
      c INTEGER)
PRIMARY INDEX ( a );
This statement performs an update on the load isolated tableldi_table1 as an implicit concurrent load isolated operation:
UPDATE WITH CONCURRENT ISOLATED LOADING ldi_table1 SET b = b + 1;

An EXPLAIN shows that the UPDATE step is performed as concurrent load isolated. The isolated load begins and performs a concurrent load isolated UPDATE of ldi_table1 (Load Uncommitted) with a condition of ("(ldi_table1.TD_ROWLOADID_DEL = 0) AND ((1=1))").