每天采集数据,想判断两条最近数据是否变动求语句,多字段,mysql

解决方案 »

  1.   

     有其他方法么?select *
    from acontent a
    where update_time='".$update_time."' and  (title!=(select title from acontent where parentid=a.parentid and id<a.id order by id desc limit 1)
    or price!=(select price from acontent where parentid=a.parentid and id<a.id order by id desc limit 1)  )  order by id desc 运行速度超慢