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

为什么批量写入会出错,将multi_data 的数据删除一条,成功执行 #155

Closed
roseqin368 opened this issue Sep 30, 2021 · 0 comments

Comments

@roseqin368
Copy link

var multi_data = []map[string]interface{}{{"age": 17, "job": "it3"}, {"age": 18, "job": "it3"}}
count, err := orm.Table("users").Data(multi_data).Insert()
fmt.Println("ExecuteDatasBySql11 count====", count) / /ExecuteDatasBySql11 count==== 0
fmt.Println("ExecuteDatasBySql11 err====", err) //ExecuteDatasBySql11 err==== sql: expected 2 arguments, got 4

@fizzday fizzday closed this as completed Mar 15, 2024
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