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
test_data = [ ('Donna', date(2022, 4, 14)), ('Eric', date(2023, 6, 21)), ('Kelso', date(2018, 9, 12)), ] stmt = "INSERT INTO names (first_name, date) VALUES (%s, %s)" cursor.executemany(stmt, test_data)
When I use executemany it's look like loop through them and insert one by one.
executemany
Isn't supposed to turn it to something like this and send at once?
INSERT INTO names (first_name, date) VALUES ('Donna', '2022-4-14'), ('Eric', '2023-6-21'), ('Kelso', '2018-9-12')
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When I use
executemany
it's look like loop through them and insert one by one.Isn't supposed to turn it to something like this and send at once?
The text was updated successfully, but these errors were encountered: