当前位置:网站首页>If function in SQL
If function in SQL
2022-07-04 10:57:00 【ths512】
IF expression
IF( expr1 , expr2 , expr3 )
expr1 The value of is TRUE, The return value is expr2
expr1 The value of is FALSE, The return value is expr3
as follows :
SELECT IF(TRUE,1+1,1+2);
-> 2
SELECT IF(FALSE,1+1,1+2);
-> 3
SELECT IF(STRCMP("111","222")," It's not equal "," equal ");
-> It's not equal 边栏推荐
- [Galaxy Kirin V10] [server] failed to start the network
- Network connection (II) three handshakes, four waves, socket essence, packaging of network packets, TCP header, IP header, ACK confirmation, sliding window, results of network packets, working mode of
- Snake (C language)
- VPS安装Virtualmin面板
- 本地Mysql忘记密码的修改方法(windows)[通俗易懂]
- Student achievement management system (C language)
- LVS+Keepalived实现四层负载及高可用
- Elevator dispatching (pairing project) ③
- Four characteristics and isolation levels of database transactions
- MFC document view framework (relationship between classes)
猜你喜欢
![[Galaxy Kirin V10] [desktop] can't be started or the screen is black](/img/68/735d80c648f4a8635513894c473860.jpg)
[Galaxy Kirin V10] [desktop] can't be started or the screen is black

Four characteristics and isolation levels of database transactions

Elevator dispatching (pairing project) ②

Quick sort (C language)
![[Galaxy Kirin V10] [server] system partition expansion](/img/49/5d3e28eab45d300bd5695e47b35e6b.jpg)
[Galaxy Kirin V10] [server] system partition expansion

Elevator dispatching (pairing project) ④

Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing

Canoe - the second simulation engineering - xvehicle - 2 panel design (operation)

Open the neural network "black box"! Unveil the mystery of machine learning system with natural language

Huge number multiplication (C language)
随机推荐
Canoe - the third simulation project - bus simulation - 2 function introduction, network topology
MBG combat zero basis
VPS安装Virtualmin面板
Get the data of the top 100 headlines today with Tianxing data
Knapsack problem and 0-1 knapsack problem
Canoe - the second simulation engineering - xvehicle - 2 panel design (operation)
Using SA token to solve websocket handshake authentication
Remove linked list elements
Day7 list and dictionary jobs
I What is security testing
[machine] [server] Taishan 200
Postman interface test
TS type gymnastics: illustrating a complex advanced type
Summary of several job scheduling problems
Performance test overview
Solaris 10网络服务
[Galaxy Kirin V10] [server] grub default password
First article
Heartbeat报错 attempted replay attack
[Galaxy Kirin V10] [server] FTP introduction and common scenario construction