How to insert single and multiple records in MySQL?
Shows how to populate tables using single and bulk INSERT INTO statements.
-- Insert Single Record
INSERT INTO employees (first_name, last_name, email, salary, hire_date)
VALUES ('John', 'Doe', 'john.doe@example.com', 55000.00, '2024-01-15');
-- Insert Multiple Bulk Records
INSERT INTO employees (first_name, last_name, email, salary, hire_date)
VALUES
('Alice', 'Smith', 'alice.smith@example.com', 62000.00, '2023-06-20'),
('Bob', 'Johnson', 'bob.j@example.com', 48000.00, '2024-03-10'),
('Carol', 'Williams', 'carol.w@example.com', 75000.00, '2022-11-01');Query OK, 1 row affected (0.01 sec) Query OK, 3 rows affected (0.01 sec) Records: 3 Duplicates: 0 Warnings: 0