### Version 1.15.0 ### What happened? Is there a way to insert multiple rows into a MySQL database? ie: the equivalent of: ``` insert into foo(bar1, bar2, bar3) values (?,?,?), (?,?,?), (?,?,?) ``` ### Relevant log output _No response_ ### Database schema _No response_ ### SQL queries _No response_ ### Configuration _No response_ ### Playground URL _No response_ ### What operating system are you using? _No response_ ### What database engines are you using? _No response_ ### What type of code are you generating? _No response_
Activity
croconut commentedon Dec 21, 2022
for an arbitrarily sized array, the mysql query would look like:
and the query parameter passed to mysql would look like:
kyleconroy commentedon Feb 22, 2023
There currently isn't a way to do this for an unknown number of rows. Duplicate of #695
croconut commentedon Feb 23, 2023
Thats too bad as its definitely doable, e.g. npm's mysql package (and why mysql doesn't already support arrays, I don't understand).
aakarim commentedon Jul 9, 2024
It looks like #695 is now closed, are there any examples of this working with an INSERT statement?