1. Home
  2. Computer Science MCQs
  3. MySQL
  4. What is the main purpose of the SELECT statement in MySQL?

Added 27 Jan 2024

What is the main purpose of the SELECT statement in MySQL?

  1. Create a new database.
  2. Update existing data in a table.
  3. Retrieve data from one or more tables. Correct answer
  4. Delete rows from a table.

Correct answer

C. Retrieve data from one or more tables.

17 views

MCQSEXAM

Explanation

The SELECT statement is used to retrieve data from one or more tables. It is the most frequently used SQL command and can be combined with WHERE, JOIN, GROUP BY and ORDER BY to filter, combine, summarise and sort results.

Creating a database is done with CREATE, changing data with UPDATE and removing rows with DELETE.

For more solved questions like this one, see Database Management Systems MCQs on MCQsExam.com.

Doubts & discussion

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