SqlColumnMetadata
A result column.
Contents
- name
-
The column name or alias as the engine reports it. Not unique:
SELECT a.id, b.idreturns twoidcolumns.Type: String
Length Constraints: Minimum length of 0. Maximum length of 1024.
Required: Yes
- nullable
-
Specifies whether the column can hold NULL.
Type: Boolean
Required: Yes
- type
-
The column's portable SQL type. It fixes which
SqlValuemember the column's values use.Type: String
Valid Values:
BOOLEAN | TINYINT | SMALLINT | INTEGER | BIGINT | REAL | DOUBLE | DECIMAL | VARCHAR | VARBINARY | DATE | TIME | TIMESTAMP | INTERVAL | ARRAY | STRUCT | MAP | UNKNOWNRequired: Yes
- typeName
-
The engine's own type, for example
Timestamp(MICROSECOND, UTC)orDecimal(12, 2, 128).Type: String
Length Constraints: Minimum length of 0. Maximum length of 1024.
Required: Yes
- precision
-
DECIMAL: total digits. TIME and TIMESTAMP: fractional-second digits.
Type: Integer
Required: No
- scale
-
DECIMAL: digits after the decimal point.
Type: Integer
Required: No
- timeZone
-
TIMESTAMP only: set when the engine stores an instant, for example
UTC.Type: String
Length Constraints: Minimum length of 0. Maximum length of 64.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: