|
楼主 |
发表于 2007-6-26 10:11:08
|
显示全部楼层
select FGUID, FPRIORITY, FSPERSONNAME, FSUBJECT, FCREATETIME, FLASTCHANGETIME, FLIMITTIME, FTYPENAME
from TTASK where TTASK.FCLIENTACCOUNT = 'NJKY'
and TTASK.FGUID in
(select TTASKMESSAGE.FTASKGUID from TTASKMESSAGE
where TTASKMESSAGE.FCLIENTACCOUNT = 'NJKY'
and TTASKMESSAGE.FSTATE in ('tmsSend', 'tmsReceived', 'tmsProcessing')
and TTASKMESSAGE.FRPERSON = 'YSRY'
or TTASKMESSAGE.FRORGURL in ('\ROOT\00.OGN',
'\ROOT\00.OGN\0003.DPT',
'\ROOT\00.OGN\0003.DPT\YSGW.PTM',
'\ROOT\00.OGN\0003.DPT\YSGW.PTM\YSRY.PSM'))
order by FCREATETIME desc
看看你们最新的Messenger取任务的SQL!
真的测试了么????? |
|