update.sql 299 B

123456
  1. delete from mobile where not EXISTS(select * from mobile_info where mobile_info.mobile_id=mobile.id)
  2. update mobile set sort_line=sort;
  3. update mobile set sort_line=-20 where top_time=1;
  4. update mobile set sort_line=-10 where rec_time=1;
  5. update mobile set sort_line=-activity_time where is_activity=1;