Question: Multi-row insert support
See original GitHub issueWould you be interested in building support for multi row insert into the parameterization semantics?
The mysql
package as something like this:
query('INSERT INTO foo (f1, f2, f3) VALUES ?', [[1,2,3], [4,5,6], [7,8,9]])
Which results in a query like:
INSERT INTO foo (f1, f2, f3) VALUES (1,2,3), (4,5,6), (7,8,9);
Would you be interested in adding this feature to pg
? If so I can take a look at what it would take. Probably it cannot be the same api, but some version would be nice IMO.
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
NET Multi-Row SQL insert support for set based operation
If we want to insert multiple values into a table in SQL, we could use the following method: INSERT INTO MyTable VALUES (1,'a','foo'); ......
Read more >How to INSERT Multiple Records in SQL
Traditional SQL INSERT query injects input data into multiple rows. In this technique, we need to the insert query as many times we...
Read more >Multi-row insert - Forums - IBM Support
Hi,. Does anyone have a multi-row insert example on C#.Net. My host server is db2 V8 and i am using FW 2 in...
Read more >Use a multi-row insert - Amazon Redshift
Multi-row inserts improve performance by batching up a series of inserts. The following example inserts three rows into a four-column table using a...
Read more >Why does Oracle still not support Multi-Row insert? [closed]
According to Wikipedia's article about INSERT in SQL, multi-row inserts are standard since SQL-92. Oracle (up to 11g at least) does not support...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@wesleytodd The best solution for multi-row inserts.
Another option https://stackoverflow.com/a/37445088/3163120
Result