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
I have an insert statement which looks something like this:
INSERT INTO mytable SET A=?, B=?;
Now I want to insert 1000 rows into mytable in a single connection. Can I do something like this?
mytable
prepareBatch(['a1', 'b1']); prepareBatch(['a2', 'b2']); prepareBatch(['a3', 'b3']); ... prepareBatch(['a1000', 'b1000']); executeBatch();
If this is possible, can you please show some example code? Thanks.
The text was updated successfully, but these errors were encountered:
Perhaps you can read readme from last example. Note: prepared function only available on that coonetion session
Sorry, something went wrong.
I have read the readme thoroughly, and the last example seems to run only one query in a batch. Any more detailed example will be greatly appreciated.
No branches or pull requests
I have an insert statement which looks something like this:
Now I want to insert 1000 rows into
mytable
in a single connection. Can I do something like this?prepareBatch(['a1', 'b1']);
prepareBatch(['a2', 'b2']);
prepareBatch(['a3', 'b3']);
...
prepareBatch(['a1000', 'b1000']);
executeBatch();
If this is possible, can you please show some example code? Thanks.
The text was updated successfully, but these errors were encountered: