mysql 获取当前时间为select now() 运行结果: 2012-09-05 17:24:15 mysql 获取当前时间戳为select unix_timestamp(now()) 运行结果: unix_timestamp(now()) 1346836984 select * from fanwe_payment_notice where user_id=66586 and is_paid=1 and UNIX_TIMESTAMP(pay_date)>=unix_timesta
select DATE_FORMAT(FROM_UNIXTIME(date),'%Y-%m-%d') as d, count(*) as c from tb where (FROM_UNIXTIME(date)) ')) and (FROM_UNIXTIME(date)) ')) group by d