How to insert data into an sql table?

Example:

-- Incorrectly attempting to insert data without specifying column names
INSERT INTO customers VALUES ('John Doe', 25);
Solution:

-- Correctly inserting data by specifying column names
INSERT INTO customers (name, age) VALUES ('John Doe', 25);
When inserting data into an SQL table, it's a best practice to specify the column names to ensure data goes into the correct columns.

Beginner's Guide to SQL