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

Batch insert has some repeated array data, how should I write it? How should I use the IGNORE keyword? #1059

Open
ZhangChengLin opened this issue Sep 2, 2022 · 0 comments

Comments

@ZhangChengLin
Copy link

INSERT IGNORE INTO tablename ('field_name') VALUES (), (),(), (),(), (),(), (),(), (),(), (),(), (),

Because what is passed is an array, you have to use insert() instead of replace(), because replace() only supports strings.

How to use insert() to ignore duplicate data?

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

1 participant