Skip to content

INTO

CREATE TABLE test_table (number INT, name VARCHAR(20));
INSERT INTO test_table VALUES (1, 'Tom'), (2, 'Jerry');
SELECT * FROM test_table;
+--------+-------+
| number | name |
+--------+-------+
| 1 | Tom |
| 2 | Jerry |
+--------+-------+

The above example demonstrates the use of the INTO keyword in SQL, specifically MySQL. A new table, test_table, is first created with two columns, number and name. Then, two rows of data are inserted using the INSERT INTO statement. The SELECT * FROM statement is used to display all rows from test_table.