Interview Questions

How can we know the number of days between two given dates using MySQL?

PHP Interview Questions and Answers


(Continued from previous question...)

How can we know the number of days between two given dates using MySQL?

Use DATEDIFF()

SELECT DATEDIFF(NOW(),'2006-07-01');

(Continued on next question...)

Other Interview Questions