MYSQL 函數


UNIX_TIMESTAMP(date) :返回時間戳 

select sum(diamond) isum from m_shares_log where user_id={$user_id} and UNIX_TIMESTAMP(created_at) > ".strtotime(date('Y-m-d'))

from_unixtime() :時間戳 轉換時間 

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