Insert Data into the users Table
Now that you have created the users table, you can insert data into it. This involves adding rows (records) to the table, with each row representing a user and their corresponding information.
Insert the following records into the users table using the INSERT INTO command:
INSERT INTO users (id, name, age) VALUES (1, 'Alice', 25);
INSERT INTO users (id, name, age) VALUES (2, 'Bob', 30);
INSERT INTO users (id, name, age) VALUES (3, 'Charlie', 22);
These commands add three new rows to the users table. Each row includes an id, a name, and an age.
The INSERT INTO command is used to add new rows to a table. The values specified in the VALUES clause are inserted into the corresponding columns listed in the parentheses after the table name.