1. Home
  2. Computer Science MCQs
  3. MySQL
  4. Which SQL statement is used to insert a new data in a…

Added 19 Jan 2024

Which SQL statement is used to insert a new data in a database?

  1. INSERT INTO Correct answer
  2. UPDATE
  3. ADD
  4. INSERT NEW

Correct answer

A. INSERT INTO

12 views

MCQSEXAM

Explanation

INSERT INTO is the SQL statement for adding new data: INSERT INTO table_name (col1, col2) VALUES (val1, val2);.

UPDATE modifies existing records, while ADD and INSERT NEW are not valid SQL statements. INSERT belongs to the Data Manipulation Language (DML), together with SELECT, UPDATE and DELETE.

Want more practice? Try the full set of Database Management Systems MCQs on MCQsExam.com.

Reference

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

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