What is a primary key in MySQL?

A primary key in MySQL is a unique identifier for each row in a table. It is used to identify a particular row in a table and ensure that each row is distinct from all other rows. It is typically a single column, but can also be composed of multiple columns.

For example, if you have a table of customers, you could use the customer ID as the primary key. This way, each customer will have a unique ID that can be used to identify them.

How do you insert data into a table in SQLite?

To insert data into a table in SQLite, you use the INSERT INTO statement.

For example, if you have a table called “customers” with the columns “name”, “address”, and “phone_number”, you can insert a new row into the table with the following statement:

INSERT INTO customers (name, address, phone_number) VALUES (‘John Doe’, ‘123 Main Street’, ‘555-123-4567’);