To insert multiple rows with a single query you can use regular insert with multiple value rows. You can also use update if you have primary key set.
Source code viewer
/* Table and column names.*/ /* Rows to insert. */ (0, 'Value 1'), (1, 'Value 2'), (2, 'Value 3'), (3, 'Value 4'), (4, 'Value 5') /* When the primary key exists, update the value. */ ...Programming Language: MySQL