mysql函数大全

来源:互联网 发布:什么听歌识曲软件好 编辑:程序博客网 时间:2024/06/18 14:18

1、select unix_timestamp('2013-01-01 10:10:10')

      功能:将日期转换为时间戳(


2、select from_unixtime(1355272360)

      功能:将时间戳转换为日期


3、select DATE_FORMAT(curdate(), '%Y-%m-%d')

      功能:获取年月日


4、SELECT IFNULL(null, '未填写')

     http://www.nowamagic.net/academy/detail/3203050




转自:http://www.cnblogs.com/cocos/archive/2011/05/06/2039469.html


http://www.cnblogs.com/ringwang/archive/2008/07/05/1236292.html

0 0
原创粉丝点击