当前位置:网站首页>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
边栏推荐
- 守护进程Xinted和日志记录Syslogd
- Canoe - the second simulation engineering - xvehicle - 2panel design (principle, idea)
- Common system modules and file operations
- LVS+Keepalived实现四层负载及高可用
- [Galaxy Kirin V10] [desktop and server] FRP intranet penetration
- Snake (C language)
- Jemeter plug-in technology
- Postman interface test
- Ten key performance indicators of software applications
- Terms related to hacker technology
猜你喜欢
Introduction to Lichuang EDA
[Galaxy Kirin V10] [server] iSCSI deployment
2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
Dynamic memory management
XMIND installation
[Galaxy Kirin V10] [desktop] build NFS to realize disk sharing
Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
[Galaxy Kirin V10] [server] failed to start the network
Basic data types of MySQL
Elevator dispatching (pairing project) ④
随机推荐
Canoe - description of common database attributes
183 sets of free resume templates to help everyone find a good job
Common system modules and file operations
Elevator dispatching (pairing project) ③
Canoe - the second simulation project -xvihicle1 bus database design (operation)
Capl: timer event
Appscan installation error: unable to install from Net runtime security policy logout appscan solution
20 minutes to learn what XML is_ XML learning notes_ What is an XML file_ Basic grammatical rules_ How to parse
regular expression
[untitled]
Get the data of the top 100 headlines today with Tianxing data
The last month before a game goes online
守护进程Xinted和日志记录Syslogd
Unittest+airtest+beatiulreport combine the three to make a beautiful test report
[Galaxy Kirin V10] [desktop] cannot add printer
Knapsack problem and 0-1 knapsack problem
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
Heartbeat启动后无反应
Software testing related resources
Learning XML DOM -- a typical model for parsing XML documents