To create a table in MySQL, you can use the CREATE TABLE statement.
Syntax:
CREATE TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
...
);
Replace table_name with the name you want to give to your table, and define the columns with their data types.
Example:
CREATE TABLE employees (
employee_id INT PRIMARY KEY,
first_name VARCHAR(50),
last_name VARCHAR(50),
hire_date DATE,
salary DECIMAL(10,2)
);
A table named employees is created with columns employee_id, first_name, last_name, hire_date, and salary.