MYSQL DATABASE INTERVIEW QUESTIONS

Course:MySQL
Chapter:Chapter 6 - DML (Data Manipulation Language)
Topic:INSERT
Questions Count:10
1

What is the purpose of the INSERT statement in MySQL?

Explanation:
2

How do you insert data into a specific column of a table in MySQL?

Explanation:
3

Can you insert multiple rows with one INSERT statement? If yes, how?

Explanation:
4

What will happen if you try to insert a value into a table where the column has a UNIQUE constraint and that value already exists?

Explanation:
5

How can you handle errors in MySQL when an INSERT fails due to constraints like NOT NULL violations?

Explanation:
6

Describe the difference between INSERT INTO and REPLACE INTO.

Explanation:
7

What is the role of the ON DUPLICATE KEY UPDATE clause in an INSERT statement?

Explanation:
8

Can you use INSERT to add data into a table from another table? Explain how.

Explanation:
9

Explain how you would use INSERT with a transaction. What are the benefits?

Explanation:
10

In the context of group replication and multi-master setups, how does MySQL handle concurrent INSERT operations across different nodes?

Explanation: