public enum TableCollectionType extends Enum<TableCollectionType>
MULTISET allows duplicates
and SET does not.
This feature is supported in Teradata, which originally required rows in a
table to be unique, and later added the MULTISET keyword to
its CREATE TABLE command to allow the duplicate rows.
In other databases and in the SQL standard, MULTISET is the only
supported option, so there is no explicit syntax.
| Enum Constant and Description |
|---|
MULTISET
Duplicate rows are permitted, in compliance with the ANSI SQL:2011 standard.
|
SET
Duplicate rows are not permitted.
|
UNSPECIFIED
Table collection type is not specified.
|
| Modifier and Type | Method and Description |
|---|---|
static TableCollectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TableCollectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TableCollectionType UNSPECIFIED
Defaults to MULTISET in ANSI mode,
and SET in Teradata mode.
public static final TableCollectionType SET
public static final TableCollectionType MULTISET
public static TableCollectionType[] values()
for (TableCollectionType c : TableCollectionType.values()) System.out.println(c);
public static TableCollectionType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2012-2020 Apache Software Foundation. All Rights Reserved.