v.23.9Improvement
Add addDate and subDate functions for MySQL compatibility and consistency
AddaddDatefunction for compatibility with MySQL andsubDatefor consistency. Reference #54275. #54400 (Nikolay Degterinsky).
Why it matters
To provide users with familiar date manipulation functions similar to MySQL, improving ease of migration and ensuring consistent behavior when adding or subtracting date intervals.How to use it
UseaddDate to add date intervals and subDate to subtract date intervals in SQL queries. Example usage: SELECT addDate('day', 3, today()); or SELECT subDate('month', 1, today());.