0
我有一個查詢下面給出:查詢不會返回正確的值
SELECT DISTINCT(FldStrategyID), FldTradeServerName,FldBaseDir,FldBinaryStartTime
FROM TblOrders Ord,
(SELECT CONCAT(FldStrategyID,'.',FldTradeServerName,'.',FldBaseDir,'.',FldBinaryStartTime) strid
FROM TblOrders
GROUP BY FldStrategyID) as OrderView
WHERE Ord.FldStrategyID !=''
AND OrderView.strid NOT IN (SELECT FldStrategyID FROM TblStrategyMasters WHERE 1)
的問題是,這部分是不工作:
OrderView.strid NOT IN (SELECT FldStrategyID FROM TblStrategyMasters WHERE 1)
沒有錯誤被給出...如果(')在那裏丟失,那麼它會給出一個錯誤..但沒有錯誤.. –