SQL: INSERT INTO TABLE
In the previous article , we’ve created tables, and now we’re ready to use the SQL INSERT INTO TABLE command and populate these tables with data. To do so, We’ll also check the contents of both tables before and after these commands using the SELECT statement. So, let’s start. INSERT INTO TABLE statement There is no point in creating database structures and not having any data in the database. The INSERT INTO TABLE statement is the one we’ll use to solve this problem. It is one of the four important SQL DML (Data Manipulation Language) statements SELECT … FROM, INSERT INTO TABLE, UPDATE … SET, and DELETE FROM… The complete syntax is pretty complex since the INSERT INTO could also be a very complex statement. In this article we’ll use simplified, but also most common syntax: INSERT INTO table_name (column_list) VALUES (column_values); In such an INSERT INTO statement, you’ll need to define the table_name where you’re inserting data, list all columns (maybe you’ll use all of t...