mysql_常见函数介绍

  一.字符函数

 

 

 

  二.数学函数

 

 

   三.日期函数

 

 

 

 

 

 

 

   四.其他函数

  五.流程控制函数

 

select IF(5=5,'','不是')

  六.case函数

 

 

select id,salary 原始工资,
CASE id
when id=10 then salary*2
when id=20 then salary*3
when id=30 then salary*4
else salary
END AS 新工资
form employees

 

 

原文地址:https://www.cnblogs.com/ibcdwx/p/14000923.html