Zum Inhalt springen

Wandelt ein Datum mit Uhrzeit (Timestamp/Datetime) in eine UInt8-Zahl um, die die Sekunde der Minute (0–59) enthält.

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>)
Argumente Beschreibung
<expr> Zeitstempel

TINYINT

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