Ir al contenido

Convierte una fecha con hora (marca de tiempo/datetime) en un número UInt8 que contiene el segundo dentro del minuto (0-59).

func.to_second(<expr>)
func.to_second('2023-11-12 09:38:18.165575')
┌──────────────────────────────────────────────┐
│ func.to_second('2023-11-12 09:38:18.165575') │
│ UInt8 │
├──────────────────────────────────────────────┤
│ 18 │
└──────────────────────────────────────────────┘
TO_SECOND(<expr>)
Argumentos Descripción
<expr> marca de tiempo

TINYINT

SELECT
to_second('2023-11-12 09:38:18.165575')
┌─────────────────────────────────────────┐
│ to_second('2023-11-12 09:38:18.165575') │
│ UInt8 │
├─────────────────────────────────────────┤
│ 18 │
└─────────────────────────────────────────┘