TO_SECOND (Lakehouse v1)
Convertit une date avec heure (horodatage/datetime) en nombre UInt8 contenant la seconde de la minute (0-59).
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.to_second(<expr>)Exemples Analyze
Section intitulée « Exemples Analyze »func.to_second('2023-11-12 09:38:18.165575')
┌──────────────────────────────────────────────┐│ func.to_second('2023-11-12 09:38:18.165575') ││ UInt8 │├──────────────────────────────────────────────┤│ 18 │└──────────────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »TO_SECOND(<expr>)Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
<expr> |
horodatage |
Type de retour
Section intitulée « Type de retour »TINYINT
Exemples SQL
Section intitulée « Exemples SQL »SELECT to_second('2023-11-12 09:38:18.165575')
┌─────────────────────────────────────────┐│ to_second('2023-11-12 09:38:18.165575') ││ UInt8 │├─────────────────────────────────────────┤│ 18 │└─────────────────────────────────────────┘