MYSQL
June 3, 2026 1 min read

Data Insertion in MYSQL: Mastering Single and Multiple Record Inserts

HS
HEMANT SINGH
Technical Writer & Educator

MYSQL insert

For this example, we will use the table(users).

 

idfirst_namelast_nameaddress
1Aman KumarDelhi

Insert single record

INSERT INTO table_name(field1_name, field2_name)VALUES(value1, value2);

Example

INSERT INTO users(first_name, last_name, address)VALUES("Ram", "Singh", "Delhi");
idfirst_namelast_nameaddress
1AmanKumarDelhi
2RamSinghDelhi

Insert multiple records

INSERT INTO table_name(field1_name, field2_name)VALUES(value1, value2), (value1, value2), (value1, value2);

Example

INSERT INTO users(first_name, last_name, address)
VALUES("Krishna", "Singh", "Delhi"),
("Mohit", "Singh", "Delhi"),
("Swayam", "Singh", "Delhi"),
("Shailly", "Singh", "Delhi");
idfirst_namelast_nameaddress
1AmanSinghDelhi
2RamSinghDelhi
3KrishnaSinghDelhi
4MohitSinghDelhi
5SwayamSinghDelhi
6ShaillySinghDelhi