Example: Drop Default Journal Table - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

Two MODIFY requests are needed to change the default journal table if it is contained within the database being modified.

The journal table FinCopy is contained within the personnel database. To change the default journal table from FinCopy to Jrnl1, the present default journal table must be dropped by entering the following request.

     MODIFY DATABASE Personnel AS
     DROP DEFAULT JOURNAL TABLE;

This request removes FinCopy as the default and also drops it from the system.

If any existing tables use FinCopy as their journal table, the request returns an error message.