How to calculate the difference between two dates?



How to calculate the difference between two dates?..

Answer / Anamica Pandey

To calculate the difference between two dates in MySQL, you can use the DATEDIFF() function. For example: SELECT DATEDIFF('2022-01-03', '2022-01-01');

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

What is the difference between procedure and function in mysql?

1 Answers  


How to give user privilages for a db. Login as root. Switch to the mysql db. Grant privs. Update privs.

1 Answers  


What is the current root password of mysql?

1 Answers  


Can we use mysql and mysqli together?

1 Answers  


How to enable or disable a row of a table using MySQL in struts?

1 Answers  


How can I see connections in mysql?

1 Answers  


how to show all records starting with the letters 'sonia' and the phone number '9876543210' limit to records 1 through 5.

1 Answers  


What is ibdata1?

1 Answers  


What is general log in mysql?

1 Answers  


What are the advantages and disadvantages of MySQL?

0 Answers   Satyam,


How to filter data from a mysql database table with php?

1 Answers  


Why do we use pragma autonomous transaction?

1 Answers  


Categories