CREATE DATABASE Syntax | Teradata Vantage - 17.05 - CREATE DATABASE Syntax - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Release Date
January 2021
Content Type
Programming Reference
Publication ID
B035-1144-175K
Language
English (United States)
{ CREATE DATABASE | CD } name [ FROM database_name ] AS database_attribute [[,]...] [;]

Syntax Elements

database_attribute
{ { PERMANENT | PERM | SPOOL | TEMPORARY } = { n | constant_expression } [BYTES]
    [ SKEW = { constant_expression | DEFAULT } [ PERCENT ] ] |

  ACCOUNT = 'account_string' |

  DEFAULT MAP = { map_name | NULL } [ OVERRIDE [NOT] ON ERROR ] |

  [NO] FALLBACK [PROTECTION] |

  [ NO | DUAL ] [BEFORE] JOURNAL |

  [ NO | DUAL | [NOT] LOCAL ] AFTER JOURNAL |

  DEFAULT JOURNAL TABLE = [ database_name. ] table_name
}