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.05
Published
January 2021
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
ncd1596241368722.ditamap
dita:ditavalPath
hoy1596145193032.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.