当前位置:网站首页>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 边栏推荐
- Article publishing experiment
- Recursive method to achieve full permutation (C language)
- Introduction to tree and binary tree
- Basic function exercises
- [untitled]
- Function introduction of canbedded component
- C language structure to realize simple address book
- Canoe - the second simulation engineering - xvehicle - 2panel design (principle, idea)
- Discussion | has large AI become autonomous? Lecun, chief scientist of openai
- Summary of automated testing framework
猜你喜欢

Canoe - description of common database attributes

2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected

Appscan installation error: unable to install from Net runtime security policy logout appscan solution

Summary of several job scheduling problems

Elevator dispatching (pairing project) ④

Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN
![[Galaxy Kirin V10] [server] FTP introduction and common scenario construction](/img/ef/f0f722aaabdc2d98723cad63d520e0.jpg)
[Galaxy Kirin V10] [server] FTP introduction and common scenario construction
![[Galaxy Kirin V10] [server] NUMA Technology](/img/9b/65466c6fc6336e27e842f50c26b9c3.jpg)
[Galaxy Kirin V10] [server] NUMA Technology
![[Galaxy Kirin V10] [server] KVM create Bridge](/img/a4/a35a276d13e194cefc547607c59f00.jpg)
[Galaxy Kirin V10] [server] KVM create Bridge

shell awk
随机推荐
Write a program that uses pointers to set all elements of an int array to 4.18: 0.
Quick sort (C language)
C language structure to realize simple address book
Day7 list and dictionary jobs
Canoe: the difference between environment variables and system variables
Canoe - the second simulation engineering - xvehicle - 2panel design (principle, idea)
51 data analysis post
Introduction to Lichuang EDA
Knapsack problem and 0-1 knapsack problem
Appscan installation error: unable to install from Net runtime security policy logout appscan solution
[Galaxy Kirin V10] [server] iSCSI deployment
[Galaxy Kirin V10] [server] NFS setup
JMeter Foundation
Sword finger offer 05 (implemented in C language)
XMIND installation
Const's constant member function after the function; Form, characteristics and use of inline function
Aike AI frontier promotion (2.14)
JMeter correlation technology
iptables导致Heartbeat脑裂
Performance features focus & JMeter & LoadRunner advantages and disadvantages