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: 1
NOW() is a MySQL date and time function that returns the current system date and time together, in the format YYYY-MM-DD HH:MM:SS.
Option 2: this is CURDATE() (or CURRENT_DATE()), which gives only the date.
Option 3: this is CURTIME() (or CURRENT_TIME()), which gives only the time.
Option 4: this is YEAR(date), for example SELECT YEAR(NOW());.
Related questions:
2026: 13 May Shift 2
2026: 19 May Shift 1
2026: 24 May Shift 1
