1. Home
  2. Computer Science MCQs
  3. MySQL
  4. A SELECT command without a WHERE clause returns?

Added 19 Jan 2024

A SELECT command without a WHERE clause returns?

  1. All the records from a table that match the previous WHERE clause
  2. All the records from a table, or information about all the records Correct answer
  3. SELECT is invalid without a WHERE clause
  4. Nothing

Correct answer

B. All the records from a table, or information about all the records

15 views

MCQSEXAM

Explanation

Without a WHERE clause, SELECT returns all the records from the table (or information about all of them, such as a count). WHERE is an optional filter; leave it out and nothing is filtered.

This matters even more for UPDATE and DELETE, where a missing WHERE clause affects every row in the table.

Practise more Database Management Systems MCQs with answers and explanations on MCQsExam.com.

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