TO_CENTURIES (Lakehouse v1)
지정한 세기 수를 Interval 형식으로 변환합니다.
- 양의 정수, 0, 음의 정수를 입력으로 받습니다.
Analyze 구문
섹션 제목: “Analyze 구문”func.to_centuries(<centuries>)Analyze 예제
섹션 제목: “Analyze 예제”func.to_centuries(2)┌──────────────────────────────────────────────────────┐│ func.to_centuries(2) │├──────────────────────────────────────────────────────┤│ 200 years │└──────────────────────────────────────────────────────┘SQL 구문
섹션 제목: “SQL 구문”TO_CENTURIES(<centuries>)반환 형식
섹션 제목: “반환 형식”Interval(년 단위로 표현).
SQL 예제
섹션 제목: “SQL 예제”SELECT TO_CENTURIES(2), TO_CENTURIES(0), TO_CENTURIES(-2);
┌───────────────────────────────────────────────────────┐│ to_centuries(2) │ to_centuries(0) │ to_centuries(- 2) │├─────────────────┼─────────────────┼───────────────────┤│ 200 years │ 00:00:00 │ -200 years │└───────────────────────────────────────────────────────┘