insert in to table sql

Solutions on MaxInterview for insert in to table sql by the best coders in the world

showing results for - "insert in to table sql"
Juan Esteban
11 Nov 2016
1It is possible to write the INSERT INTO statement in two ways:
2
31. Specify both the column names and the values to be inserted:
4INSERT INTO table_name (column1, column2, column3, ...)
5VALUES (value1, value2, value3, ...);
6
72. If you are adding values for all the columns of the table, you do not need to specify the column names in the SQL query. However, make sure the order of the values is in the same order as the columns in the table. Here, the INSERT INTO syntax would be as follows:
8INSERT INTO table_name
9VALUES (value1, value2, value3, ...);