17.00 - Example: Local Journaling - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Release Date
September 2020
Content Type
Programming Reference
Publication ID
B035-1144-170K
Language
English (United States)

As an example, given the following CREATE TABLE requests:

     CREATE TABLE cyk.test_1, NO FALLBACK, AFTER JOURNAL (
       x INTEGER, 
       y INTEGER) 
     PRIMARY INDEX(x);
    
     CREATE TABLE cyk.test_2, NO FALLBACK, NOT LOCAL AFTER JOURNAL (
       x INTEGER, 
       y INTEGER) 
     PRIMARY INDEX(x);
    
     CREATE TABLE cyk.test_3, NO FALLBACK, LOCAL AFTER JOURNAL (
       x INTEGER, 
       y INTEGER) 
     PRIMARY INDEX(x);

SHOW TABLE produces the following output:

     CREATE TABLE cyk.test_1, NO FALLBACK, NO BEFORE JOURNAL,
       NOT LOCAL AFTER JOURNAL (
       x INTEGER, 
       y INTEGER) 
     PRIMARY INDEX(x);
    
     CREATE TABLE cyk.test_2, NO FALLBACK, NO BEFORE JOURNAL,
       NOT LOCAL AFTER JOURNAL (
       x INTEGER, 
       y INTEGER) 
     PRIMARY INDEX(x);
    
     CREATE TABLE cyk.test_3, NO FALLBACK, NO BEFORE JOURNAL,
       LOCAL AFTER JOURNAL (
       x INTEGER, 
       y INTEGER) 
     PRIMARY INDEX(x);