Funzione dayofweek
Si applica a: Databricks SQL
Databricks Runtime
Restituisce il giorno della settimana della data o della data e ora. Questa funzione è un sinonimo di extract(DAYOFWEEK FROM expr)
.
Sintassi
dayofweek(expr)
Argomenti
-
expr
: espressione DATE o TIMESTAMP.
Valori restituiti
Integer where1 = Sunday
e 7 = Saturday
.
Esempi
> SELECT dayofweek('2009-07-30');
5