TO_CENTURIES (Lakehouse v1)
Convertit un nombre donné de siècles en type Interval.
- Accepte en entrée des entiers positifs, zéro et des entiers négatifs.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.to_centuries(<centuries>)Exemples Analyze
Section intitulée « Exemples Analyze »func.to_centuries(2)┌──────────────────────────────────────────────────────┐│ func.to_centuries(2) │├──────────────────────────────────────────────────────┤│ 200 years │└──────────────────────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »TO_CENTURIES(<centuries>)Type de retour
Section intitulée « Type de retour »Interval (exprimé en années).
Exemples SQL
Section intitulée « Exemples SQL »SELECT TO_CENTURIES(2), TO_CENTURIES(0), TO_CENTURIES(-2);
┌───────────────────────────────────────────────────────┐│ to_centuries(2) │ to_centuries(0) │ to_centuries(- 2) │├─────────────────┼─────────────────┼───────────────────┤│ 200 years │ 00:00:00 │ -200 years │└───────────────────────────────────────────────────────┘