15.10 - Example: CREATE Request That Produces a NoPI Table - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Release Number
15.10
Published
December 2015
Content Type
Programming Reference
Publication ID
B035-1144-151K
Language
English (United States)
Last Update
2018-06-05

This example creates a NoPI table named sales_temp1 regardless of the setting for PrimaryIndexDefault because you have specified NO PRIMARY INDEX explicitly:

     CREATE MULTISET TABLE sales_temp1, FALLBACK, NO BEFORE JOURNAL,
     NO AFTER JOURNAL, CHECKSUM = DEFAULT (
       item_nbr INTEGER NOT NULL,
       sale_date DATE FORMAT 'MM/DD/YYYY' NOT NULL,
       item_count INTEGER)
     NO PRIMARY INDEX;