How REPLACE ORDERING Differs From CREATE ORDERING - Teradata Vantage - Analytics Database

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2024-12-13
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
jbg1472252759029
lifecycle
latest
Product Category
Teradata Vantage™

The following rules and behaviors differentiate the REPLACE ORDERING and CREATE ORDERING statements:

  • If you specify REPLACE ORDERING, and the specified ordering exists, the system replaces it with the new definition.
  • If the specified ordering does not exist and the associated UDT does not have a defined ordering, then the system creates the specified ordering.
  • If the REPLACE ORDERING statement specifies an ordering for a UDT with which an existing ordering is associated, the system returns an error to the requestor because you can specify only one ordering per UDT.