|
楼主 |
发表于 2008-11-27 17:44:44
|
显示全部楼层
在数据库检查器中发现就死在执行一下sql语句的时候卡了几分钟 我觉得和权限表或者调拨单表有关
Select max (ID) From TransM Where cOWhCode In (select distinct cACCode from aa_holdauth where cACCode<>'' And (aa_holdauth.cUserId='zbkf' and cBusObId='warehouse' And isUserGroup=0)) And (cODepCode In (select distinct cACCode from aa_holdauth where cACCode<>'' And (aa_holdauth.cUserId='zbkf' and cBusObId='department' And isUserGroup=0)) OR ISNULL(cODepCode,'') = '') And Not Id In (Select Distinct Id From TransD Where Not iId In (5,6,7,8) Or iId Is Null) |
|