Which function used to get the current time in mysql?
Correct answer
C. NOW()
11 views
C. NOW()
11 views
NOW() returns the current date and time in MySQL in the format YYYY-MM-DD HH:MM:SS.
Related functions are CURDATE() for the date only and CURTIME() for the time only. DATE() and TIME() exist but extract part of a value you supply, and getTime() is a JavaScript method.
Want more practice? Try the full set of Database Management Systems MCQs on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.