mysql insert same data in all rows code example
Example 1: mysql best way to insert many rows
INSERT INTO table_name(id,colname) values(1,"row 1"),(2, "row 2"),...;
Example 2: how to insert same table data using mysql query
Use INSERT ... SELECT:
insert into your_table (c1, c2, ...)
select c1, c2, ...
from your_table
where id = 1