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

Error Code: 1175. You are using safe update mode and you tried to update a t #10

Open
zhongs opened this issue Mar 7, 2020 · 0 comments
Labels
mysql 和 mysql 相关问题

Comments

@zhongs
Copy link
Owner

zhongs commented Mar 7, 2020

msyql 执行 update 或者 deleted 语句失败,必须用主键 id 作为查询条件才能执行成功;可以如下设置解决

SET SQL_SAFE_UPDATES = 0;

恢复设置

SET SQL_SAFE_UPDATES = 1;
@zhongs zhongs added the mysql 和 mysql 相关问题 label Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mysql 和 mysql 相关问题
Projects
None yet
Development

No branches or pull requests

1 participant