콘텐츠로 이동

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

  • 양의 정수, 0, 음의 정수를 입력으로 받습니다.
func.to_minutes(<minutes>)
func.to_minutes(2)
┌──────────────────────────────────────────────────────┐
│ func.to_minutes(2) │
├──────────────────────────────────────────────────────┤
│ 0:02:00 │
└──────────────────────────────────────────────────────┘
TO_MINUTES(<minutes>)

Interval(hh:mm:ss 형식).

SELECT TO_MINUTES(2), TO_MINUTES(0), TO_MINUTES((- 2));
┌─────────────────────────────────────────────────┐
│ to_minutes(2) │ to_minutes(0) │ to_minutes(- 2) │
├───────────────┼───────────────┼─────────────────┤
│ 0:02:00 │ 00:00:00 │ -0:02:00 │
└─────────────────────────────────────────────────┘