摘要:
1、将时间转换为时间戳select unix_timestamp('2009-10-26 10-06-07')如果参数为空,则处理为当前时间2、将时间戳转换为时间select from_unixtime(1256540102)有些应用生成的时间戳是比这个多出三位,是毫秒表示,如果要转换,需要先将最后三位去掉,否则返回NULLselect date_format(日期字段,’%Y-%m-%d’) as ‘日期’ from test 阅读全文
posted @ 2011-11-24 17:12
wnguh
阅读(20056)
评论(0)
推荐(3)
浙公网安备 33010602011771号