View a markdown version of this page

SqlColumnMetadata - AWS Context

SqlColumnMetadata

A result column.

Contents

name

The column name or alias as the engine reports it. Not unique: SELECT a.id, b.id returns two id columns.

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 SqlValue member 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 | UNKNOWN

Required: Yes

typeName

The engine's own type, for example Timestamp(MICROSECOND, UTC) or Decimal(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: