Which of the following ways below are the correct way to get the current date?
Correct answer
B. SELECT CURDATE();
17 views
B. SELECT CURDATE();
17 views
CURDATE() returns the current date (YYYY-MM-DD). CURTIME() returns only the current time, and option 3 is misspelled and invalid, so 'All of the above' is incorrect.
Not sure why the answer is B? Ask here and get an explanation.