SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
set @selectDT = '2024-04-14'; select YEAR(@selectDT), MONTH(@selectDT), DATE_SUB(@selectDT, INTERVAL DAY(@selectDR)-1 DAY) as dt

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear