SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
with recursive ds as( select date('2005-07-01') as D union all select date_add(D, interval 1 day) from ds where D < '2005-07-31' ) select count(*) as weekend_days from ds where dayofweek(ds.D) in (1,7) ; show status like 'Last_query_cost';

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear