Write a query to display the current date and time? | Eklavya Online

Write a query to display the current date and time?

If you want to display the current date and time, use –

SELECT NOW();

If you want to display the current date only, use:

SELECT CURRENT_DATE();