

# SqlColumnMetadata

A result column.

## Contents
<a name="API_SqlColumnMetadata_Contents"></a>

 ** name **   <a name="context-Type-SqlColumnMetadata-name"></a>
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 **   <a name="context-Type-SqlColumnMetadata-nullable"></a>
Specifies whether the column can hold NULL.  
Type: Boolean  
Required: Yes

 ** type **   <a name="context-Type-SqlColumnMetadata-type"></a>
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 **   <a name="context-Type-SqlColumnMetadata-typeName"></a>
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 **   <a name="context-Type-SqlColumnMetadata-precision"></a>
DECIMAL: total digits. TIME and TIMESTAMP: fractional-second digits.  
Type: Integer  
Required: No

 ** scale **   <a name="context-Type-SqlColumnMetadata-scale"></a>
DECIMAL: digits after the decimal point.  
Type: Integer  
Required: No

 ** timeZone **   <a name="context-Type-SqlColumnMetadata-timeZone"></a>
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
<a name="API_SqlColumnMetadata_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/context-2022-07-26/SqlColumnMetadata) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/SqlColumnMetadata) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/SqlColumnMetadata) 