What will be the output of the following query?
SELECT NOW();
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.
Related questions:
2026: 18 May Shift 2
2025: 21 May Shift 1
2025: 3 June Shift 2
2025: 14 May Shift 1
2026: 26 May Shift 1