码迷,mamicode.com
首页 > 其他好文 > 详细

资源回收 left

时间:2014-12-15 10:14:40      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:on   log   ef   br   ca   ip   rom   user   it   

select DISTINCT human.tid,log_pv_change.systafftid
from human
left join human_user on human.tid=human_user.hid
left join human_house on human.tid = human_house.hid
left join human_tickets on human.tid=human_tickets.hid
left join human_call on human.tid=human_call.hid
left join human_vip on human.tid=human_vip.hid
left join log_pv_change on human_tickets.tid=log_pv_change.data_tid
where human.vuse=1 and human.vdel=1
and (human.tid not in(select human.tid from human_tickets,human WHERE human_tickets.hid=human.tid and human_tickets.expoid=‘X000000I‘) )
and human.call_staff_tid = ‘X000009V‘
and human_tickets.expoid=(select tid from expo where vtop=1)
and human_user.vuse=1 and human_user.vdel=1 and human_user.phone<>‘‘
order by human.stafftid limit 0,2000

资源回收 left

标签:on   log   ef   br   ca   ip   rom   user   it   

原文地址:http://www.cnblogs.com/zc39765547/p/4164187.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!