

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 유형 변환 함수
<a name="sql-functions-type-conv"></a>

 유형 변환 함수는 값의 데이터 유형을 한에서 다른 로 변경하는 데 사용됩니다. 이는 데이터 호환성을 보장하고 특정 형식의 데이터가 필요한 작업을 수행하는 데 필수적입니다.


|  **함수**  |  **Signature**  |  **설명**  | 
| --- | --- | --- | 
| `TO_DATE` |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  | 
| `TO_TIMESTAMP` |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  | 
| `TO_TIME` |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/iot-sitewise/latest/userguide/sql-functions-type-conv.html)  | 
| `CAST` | CAST(<expression> AS <data type>) | 한 유형에서 다른 유형으로 단일 값으로 평가되는 개체 또는 표현식을 변환합니다.<br />지원되는 데이터 형식은 다음과 같습니다.[See the AWS documentation website for more details](http://docs.aws.amazon.com/ko_kr/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
```