1. Home
  2. Computer Science MCQs
  3. MySQL
  4. Which of the following can add a row to a table?

Added 19 Jan 2024

Which of the following can add a row to a table?

  1. Add
  2. Insert Correct answer
  3. Update
  4. Alter

Correct answer

B. Insert

13 views

MCQSEXAM

Explanation

INSERT adds a new row to a table: INSERT INTO students (name, age) VALUES ('Ali', 20);.

UPDATE changes values in rows that already exist, ALTER changes the table's structure (for example, adding a column), and ADD is only a clause used inside ALTER TABLE, not a statement of its own.

Keep preparing with more Database Management Systems MCQs on MCQsExam.com.

Video explanation

Reference

https://www.w3schools.com/mysql/mysql_insert.asp

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