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_ADD(YEAR(@selectDT), INTERVAL MONTH(@selectDT) MONTH) as dt

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear