Skip to content
New issue

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

How to do a bulk insert? #41

Open
shaishab opened this issue Aug 30, 2018 · 1 comment
Open

How to do a bulk insert? #41

shaishab opened this issue Aug 30, 2018 · 1 comment

Comments

@shaishab
Copy link

How to execute a bulk insert? MySQL query like bellow.

INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9);

@artzhookov
Copy link
Contributor

artzhookov commented Sep 23, 2018

@shaishab you can use an array as a values, example here: https://github.com/2do2go/json-sql/tree/master/docs#values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants