

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 型変換関数
<a name="sql-functions-type-conv"></a>

 型変換関数は、値のデータ型をある値から別の値に変更するために使用されます。データの互換性を確保し、特定の形式のデータを必要とするオペレーションを実行するために不可欠です。


|  **関数**  |  **署名**  |  **説明**  | 
| --- | --- | --- | 
| `TO_DATE` |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  | 
| `TO_TIMESTAMP` |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  | 
| `TO_TIME` |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  | 
| `CAST` | CAST (<式> AS <データ型>) | エンティティ、または評価される式を 1 つの型から別の型に変換します。<br />サポートされているデータ型は次のとおりです。[See the AWS documentation website for more details](http://docs.aws.amazon.com/ja_jp/iot-sitewise/latest/userguide/sql-functions-type-conv.html) | 

**Example リストされた関数を使用した SQL クエリの :**  

```
SELECT TO_TIMESTAMP (100) AS timestamp_value,
  TO_DATE(r.event_timestamp) AS date_value,
  TO_TIME(r.event_timestamp) AS time_value
FROM raw_time_series AS r
```