Basic PHP Programming Question:
Download Questions PDF

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

PHP Interview Question
PHP Interview Question

Answer:

Use DATEDIFF()

SELECT DATEDIFF(NOW(),'2008-10-01');

Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
How can we change the name of a column of a table?How can we change the data type of a column of a table?