-
Notifications
You must be signed in to change notification settings - Fork 230
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
同一字段根据不同条件更新的sql语句的写法 #4
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
同一字段根据不同条件更新的sql语句的写法
示例:
上面这条SQl语句的意思就是,当is_enter为1时,就将unread字段置为0,否则自增1。
when,then也可用于SQL条件判断语句:
第一种:
第二种:
The text was updated successfully, but these errors were encountered: