本帖最后由 u012376806 于 2013-10-13 19:17:32 编辑

解决方案 »

  1.   


    mysql查询30分钟前的数据要怎么写查询语句啊  unix时间戳查询当前id是1的粉丝个数
    select count(*) as totalb from pd_attentions where followuserid='1' 查询30分钟前 id是1的粉丝个数
    select count(*) as totalb from pd_attentions where followuserid='1'  in_time<???????
      

  2.   

    select count(*) as totalb from pd_attentions where followuserid='1' and in_time < DATE_SUB(CURDATE(),INTERVAL 30 SECOND)