Basic PHP Programming Question: Download Questions PDF
How can we know the number of days between two given dates using MySQL?
![PHP Interview Answer PHP Interview Question](https://globalguideline.com/public/images/interview/7.png)
Answer:
Use DATEDIFF()
SELECT DATEDIFF(NOW(),'2008-10-01');
SELECT DATEDIFF(NOW(),'2008-10-01');
Download PHP Interview Questions And Answers
PDF
Previous Question | Next 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? |