1. Home
  2. Computer Science MCQs
  3. MySQL
  4. How can we get the number of records or rows in a table?

Added 19 Jan 2024

How can we get the number of records or rows in a table?

  1. Using COUNT Correct answer
  2. Using NUM
  3. Using NUMBER
  4. Both a and c above

Correct answer

A. Using COUNT

17 views

MCQSEXAM

Explanation

COUNT() returns the number of rows in a table, e.g. SELECT COUNT(*) FROM table_name;. NUM and NUMBER are not SQL functions.

Doubts & discussion

Not sure why the answer is A? 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