17.00 - Example: Drop Default Journal Table - 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)

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.