-
Notifications
You must be signed in to change notification settings - Fork 865
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
插入字典失败 #1601
Comments
我是想存在就跳过,不存在就插入。 |
.IfExistsDoNothing 在 mysql 下有问题,等待修复 |
2881099
added a commit
that referenced
this issue
Aug 24, 2023
2881099
added a commit
that referenced
this issue
Aug 24, 2023
v3.2.701-preview20230824 过几分钟后更新 |
Mysql支持insert ignore,insert replace等几种插入语法,用这个更快些 |
语句简单些 |
2881099
added a commit
that referenced
this issue
Aug 24, 2023
2881099
added a commit
that referenced
this issue
Aug 24, 2023
谢谢反馈,已优化 v3.2.701-preview20230824 |
Pgsql也支持这个语法 |
Sqlite也支持,sqlserver不支持,其他的一些数据库我也不知道😉 |
pgsql 有 On Conflict Do Update sqlserver 有 merge into 都可以实现 IfExistsDoNothing,并且可以指定字段来判断 replace ignore 这些只能根据主键,或唯一键 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述及重现代码:
数据库版本
mysql 5.7
安装的Nuget包
最新版
.net framework/. net core? 及具体版本
6
The text was updated successfully, but these errors were encountered: