What is the purpose of the INSERT query in SQL?
The INSERT query is used to add a row or multiple rows to a table.
What is the basic syntax of an INSERT query?
INSERT INTO table [(column1, column2, column3, ...)] VALUES (value1, value2, value3, ...);
What happens when you execute the following query? INSERT INTO user VALUES (7914, ‘SuperPlayer’, ‘soupRpalya’, ‘31/12/2018’);
A new row is added to the user table with the specified values.
How can you insert multiple rows at once in SQL?
By using a single INSERT statement with multiple sets of values, separated by commas.
How can you specify the column order when inserting data?
By explicitly listing the column names in the INSERT statement before the VALUES keyword.
Why is it important to ensure that column names and values match when inserting data?
To prevent errors and ensure data is inserted into the correct columns in the correct order.
What should you do after inserting data into a table?
Use a SELECT query to verify that the data has been added correctly.