Select the correct SQL statement which will correctly insert a new row into the Customer table
Select the correct SQL statement which will correctly insert a new row into the Customer table
with only the CustomerID, Name, and Product columns specified, assuming the table allows
NULLs for other columns.
Show answerHide answer
Correct answer: (D) INSERT INTO Customer (CustomerID, Name, Product) VALUES (101, 'Alice', 'Pen');
Explanation
To insert values into only some columns, list those columns after the table name and give matching values: INSERT INTO table (cols) VALUES (...). Option B gives no column list, so it expects values for all columns.