TO_DAY_OF_MONTH (Lakehouse v1)
Convertit une date ou une date avec heure (horodatage/datetime) en nombre UInt8 contenant le numéro du jour du mois (1-31).
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.to_day_of_month(<expr>)Exemples Analyze
Section intitulée « Exemples Analyze »func.now(), func.to_day_of_month(func.now()), func.day(func.now())
┌──────────────────────────────────────────────────────────────────────────────────────┐│ func.now() │ func.to_day_of_month(func.now()) │ func.day(func.now()) │├────────────────────────────┼──────────────────────────────────┼──────────────────────┤│ 2024-03-14 23:35:41.947962 │ 14 │ 14 │└──────────────────────────────────────────────────────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »TO_DAY_OF_MONTH(<expr>)Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
<expr> |
date/horodatage |
Type de retour
Section intitulée « Type de retour »TINYINT
Exemples SQL
Section intitulée « Exemples SQL »SELECT NOW(), TO_DAY_OF_MONTH(NOW()), DAY(NOW());
┌──────────────────────────────────────────────────────────────────┐│ now() │ to_day_of_month(now()) │ day(now()) │├────────────────────────────┼────────────────────────┼────────────┤│ 2024-03-14 23:35:41.947962 │ 14 │ 14 │└──────────────────────────────────────────────────────────────────┘