Skip to main contentSkip to solution

What will be the output of the following query?

SELECT NOW();

Solution

✅ Correct Option: 2

NOW() returns the current system date and time together, in the format YYYY-MM-DD HH:MM:SS.


Option 1: that is CURDATE() (or CURRENT_DATE()), which gives only the date.

Option 3: that is CURTIME() (or CURRENT_TIME()), which gives only the time.

Option 4: that needs YEAR(NOW()) or YEAR(CURDATE()), not NOW() alone.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question