本帖最后由 irene 于 2012-8-16 16:54 编辑
- select *
- from TLK_报销申请单 doc
- where '11e1-36a6-022956c7-ace4-af32d9a65572' in
- (select a.actorid
- from t_actorhis a, t_relationhis r
- where r.docid = doc.id
- and a.nodehis_id = r.id
- and r.flowid in
- (select flowid from t_flowstatert where docid = doc.id))
- and doc.statelabel <> '未提交'
- and doc.statelabel <> '结束'
复制代码 上面是我们报销已办箱的Sql语句,每次点击已办箱时,都会非常非常慢,请问有其它解决方法,让它响应快一点呢? |