mysql timestamp使用示例

#獲取當前時間戳

select unix_timestamp()

 

#獲取指定時間的時間戳

select unix_timestamp('1970-01-01 22:10:10')

 

#獲取當前日期

select from_unixtime()

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章