19819/how-to-do-a-batch-insert-in-mysql
I have 1-many number of records that need to be entered into a table.
What is the best way to do this in a query?
Should I just make a loop and insert one record per iteration? Or is there a better way?
You can try out the following query:
INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9);
From the version 5.1.7 onward, MySQL allows ...READ MORE
Reference the System.Web dll in your model ...READ MORE
If you are using MySql workbench then ...READ MORE
You can download the all in one ...READ MORE
The reasons are as follows: The MySQL extension: Does ...READ MORE
Please check the below-mentioned syntax and commands: To ...READ MORE
using MySql.Data; using MySql.Data.MySqlClient; namespace Data { ...READ MORE
There are a lot of ways to ...READ MORE
You can add commas to the left and ...READ MORE
With the help of the SQL count ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.