标签:技术分享 nbsp 显示日期 img image from 指定 sel 格式化
1.字符串函数

2.数值函数

3.日期函数

DATE_FORMAT(date,fmt)函数:按字符串fmt 格式化日期date 值,此函数能够按指定的格式显示日期


4.流程函数

举例如下
mysql> select if(salary>2000,‘high‘,‘low‘) from salary;
mysql> select ifnull(salary,0) from salary;
mysql> select case salary when 1000 then ‘low‘ when 2000 then ‘mid‘ else ‘high‘ end from salary;
5.其他函数

标签:技术分享 nbsp 显示日期 img image from 指定 sel 格式化
原文地址:http://www.cnblogs.com/yangxuming/p/6719175.html