251. Insert multiple products — implementation 2

DBMS Published Updated 0 Views Verified
Write the MySQL 8.0 query to insert multiple products. Assume the relevant table/columns exist.
Looking for the latest Sarkari Result 2026 updates? Check the latest government exam results, merit lists and result updates on Sarkari Resultess.
Sarkari Resultess
Questions & Answers

Answer & Explanation

4 Answers
Verified

Option A

Use SELECT instead of the required operation.
Additional Explanation
This option is incorrect for the stated requirement.
Sarkari Resultess
Editorial Answer 1
Verified

Option B

Use TRUNCATE for only the matching rows.
Additional Explanation
This option is incorrect for the stated requirement.
Sarkari Resultess
Editorial Answer 2
Verified Correct Answer

Option C

INSERT INTO products (name, price, stock) VALUES ('Keyboard', 1200, 20), ('Mouse', 600, 50), ('Monitor', 12000, 10);
Additional Explanation
Correct implementation. Prefer parameterized queries in application code, validate affected rows for UPDATE/DELETE, and use transactions for related writes.
Sarkari Resultess
Editorial Answer 3
Verified

Option D

Use a CROSS JOIN without a filter.
Additional Explanation
This option is incorrect for the stated requirement.
Sarkari Resultess
Editorial Answer 4