Skip to content

INSERT

INSERT INTO Customers (customer_id, name, city)
VALUES (1, 'John Doe', 'New York');
Query OK, 1 row affected (0.01 sec)

The above SQL command INSERT INTO is used to insert new rows of data into an existing table. In this case, a new customer with customer_id 1, name ‘John Doe’ and city ‘New York’ is inserted into the ‘Customers’ table.