Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to set different query conditions according to different situations in mysql

Shulou Source: shulou.com Published: 2022-06-02 10:33:29 10月22日 Update

Mysql how to set different query conditions according to different circumstances, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.

Case when

A > b

Then

User_name='123'

Else

User_name='234'

End

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Different help situation condition query clarity content for this article novice more knowledge industry information information channel problem demand channel enter one learn Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple OPPO Reno Xiaomi Huawei Redmi