1. Home
  2. Computer Science MCQs
  3. MySQL
  4. Which of the following ways below are the correct way to…

Added 19 Jan 2024

Which of the following ways below are the correct way to get the current date?

  1. SELECT CURTIME();
  2. SELECT CURDATE(); Correct answer
  3. SLELCT CURRRENT_TIME()
  4. All of the above

Correct answer

B. SELECT CURDATE();

17 views

MCQSEXAM

Explanation

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.

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More MySQL MCQs

Practise all MySQL MCQs

Similar MCQs