SQL语句执行出错!大虾帮看看是怎么回事儿。
SQL语句如下:
select province,count(province) as num from IvrUserInfo a where exists(select * from IvrSentRecord where a.mobile=mobile) group by province
这条语句在数据库中直接执行,没有错误,执行大约4-5分钟;可是用程序在WEB中执行,不到30秒,就出错,出错信息如下:
tal error: Uncaught exception 'com_exception' with message 'Source: Microsoft OLE DB Provider for SQL Server
Description: 多步 OLE DB 操作产生错误。请检查每个 OLE DB 状态值。没有工作被完成。' in E:\IVRSEARCH\test.php:22 Stack trace: #0 E:\IVRSEARCH\test.php(22): com->open('select province...', Object(com), 1, 1) #1 {main} thrown in E:\IVRSEARCH\test.php on line 22
麻烦大家帮看看。谢谢。