【发布时间】:2012-09-23 14:11:34
【问题描述】:
我正在尝试执行此查询:
SELECT * from vwLstDtaLines d1,vwLStDtafiles d2 where d1.DtaLinePaymentDate='1/1/2000'or d1.DtaLinePaymentDate='1/1/2012' or d1.DtaLineUserCre='abc' or d1.DtaLineUserMatch='abc' or d2.DtaFileName='Sent'
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
一次又一次地得到这个错误
【问题讨论】:
-
您确定要进行交叉连接吗?
-
我想从两个视图中获取和比较数据。必须这样做:/
-
这两个不同的视图是否有相似的列。您是否可以对这两者进行
UNION(每个都有自己的WHERE子句)而不是加入?从 SQL 的角度来看,您正在做的事情似乎根本上是错误的——这导致了您的超时。