Home > Database > Mysql Tutorial > mysql相关流程工程函数_MySQL

mysql相关流程工程函数_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:29:47
Original
1057 people have browsed it

bitsCN.com


mysql相关流程工程函数
 

Java代码  SELECT IF(t.name in('张三','李四'),'1111',t.name) from test t;  Java代码  SELECT CASE WHEN t.name in('张三','李四') > 0 THEN 1 ELSE t.name end from test t;  
Copy after login

 

 

 可以直接使用in来判断多重条件 注意括号的使用

 

bitsCN.com
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template