We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.15.0
Is there a way to insert multiple rows into a MySQL database?
ie: the equivalent of:
insert into foo(bar1, bar2, bar3) values (?,?,?), (?,?,?), (?,?,?)
No response
The text was updated successfully, but these errors were encountered:
for an arbitrarily sized array, the mysql query would look like:
insert into table_1 (col_1, col_2) values ?;
and the query parameter passed to mysql would look like:
('string', 15), ('second', 16), ('last', 35)
Sorry, something went wrong.
There currently isn't a way to do this for an unknown number of rows. Duplicate of #695
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).
It looks like #695 is now closed, are there any examples of this working with an INSERT statement?
No branches or pull requests
Version
1.15.0
What happened?
Is there a way to insert multiple rows into a MySQL database?
ie: the equivalent of:
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
The text was updated successfully, but these errors were encountered: