I have some problem to convert an SQL Server query into MySQL.
In SQL Server, the function recognize as DATENAME() and I changed it into MONTHNAME(). Then dateadd() in SQL Server become date_add() function.
Some sample for SQL Server query is
DATENAME("month",DATEADD("month",1,'8/1/2006'))
As I mentioned above, the query works well in SQL Server but it's not working at MySQL.
Then I tried rewrite the function into like this
MONTHNAME("8/1/2006",DATE_ADD("8/1/2006", INTERVAL 1 month))
Once again, it nots working.
How to fix that?
MONTHNAME("8/1/2006",DATE_ADD("8/1/2006", INTERVAL 1 month))give you and what do you want it to return?