Zum Inhalt springen

Gibt den Wochentagsindex für ein Datum zurück (1 = Sonntag, 7 = Samstag).

func.dayofweek(<date>)
func.dayofweek('2024-06-15')
┌───┐
│ 7 │
└───┘
DAYOFWEEK(<date>)
SELECT DAYOFWEEK('2024-06-15');
┌───┐
│ 7 │
└───┘