

# SqlValue

One value. Exactly one member is set, and the column's `type` determines which member.

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

**Important**  
This data type is a UNION, so only one of the following members can be specified when used or returned.

 ** blobValue **   <a name="context-Type-SqlValue-blobValue"></a>
A VARBINARY column value, as binary data.  
Type: Base64-encoded binary data object  
Required: No

 ** booleanValue **   <a name="context-Type-SqlValue-booleanValue"></a>
A BOOLEAN column value.  
Type: Boolean  
Required: No

 ** doubleValue **   <a name="context-Type-SqlValue-doubleValue"></a>
REAL and DOUBLE, except NaN and infinities, which are `stringValue` (`NaN`, `Infinity`, `-Infinity`).  
Type: Double  
Required: No

 ** jsonValue **   <a name="context-Type-SqlValue-jsonValue"></a>
An ARRAY, STRUCT, or MAP column value, as JSON text: an array, an object, and an array of `{"key": ..., "value": ...}` entries. Nested values follow the same rules, with NULL as `null`.  
Type: String  
Required: No

 ** longValue **   <a name="context-Type-SqlValue-longValue"></a>
A TINYINT, SMALLINT, INTEGER, or BIGINT column value.  
Type: Long  
Required: No

 ** nullValue **   <a name="context-Type-SqlValue-nullValue"></a>
Specifies whether the value is a SQL NULL. Always `true` when present.  
Type: Boolean  
Required: No

 ** stringValue **   <a name="context-Type-SqlValue-stringValue"></a>
VARCHAR, and the types whose exact form is text: DECIMAL and unsigned 64-bit integers in plain notation, DATE (`yyyy-MM-dd`), TIME and TIMESTAMP (ISO-8601 at the column's precision; `Z` when `timeZone` is set), and INTERVAL (ISO-8601 duration). An UNKNOWN column's values are NULL. A non-null value of a type the service cannot return fails the request with ValidationException (cast the column to VARCHAR).  
Type: String  
Required: No

## See Also
<a name="API_SqlValue_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/SqlValue) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/context-2022-07-26/SqlValue) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/context-2022-07-26/SqlValue) 