mysql 获取当前时间戳

来源:互联网 发布:子非鸑鷟 焉知吾心 编辑:程序博客网 时间:2024/05/14 19:08
mysql 获取当前时间为select now()[喝小酒的网摘]http://blog.hehehehehe.cn/a/16141.htm
运行结果2012-09-05 17:24:15
mysql 获取当前时间戳为select unix_timestamp(now()) 
运行结果:
unix_timestamp(now())
1346836984[喝小酒的网摘]http://blog.hehehehehe.cn/a/16141.htm
0 0