SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
with recursive t1 as ( select '2005-07-01' as date union select date_add(date, interval 1 day) from t1 where date < '2005-07-31' ) select count(dayofweek(date)) from t1 where dayofweek(date) in (6,7)

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear