I am using MySQl Server. The problem is whenever i using
SELECT DATEDIFF(year, '2017/08/25', '2011/08/25') AS DateDiff`;
Statement an error is showing which goes as
ERROR 1582 (42000): Incorrect parameter count in the call to native function 'DATEDIFF'.
The DATEDIFF()
when i am trying to find the diff in months or year basically other than days is not working as it should.
however if i use SELECT DATEDIFF('2017/08/25', '2011/08/25') AS DateDiff
;
its returning the value in days.