콘텐츠로 이동

지정한 세기 수를 Interval 형식으로 변환합니다.

  • 양의 정수, 0, 음의 정수를 입력으로 받습니다.
func.to_centuries(<centuries>)
func.to_centuries(2)
┌──────────────────────────────────────────────────────┐
│ func.to_centuries(2) │
├──────────────────────────────────────────────────────┤
│ 200 years │
└──────────────────────────────────────────────────────┘
TO_CENTURIES(<centuries>)

Interval(년 단위로 표현).

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 │
└───────────────────────────────────────────────────────┘