0
我有以下查詢,只有800記錄服用5個minits運行,可你一些幫助,請MySQL查詢速度很慢時,將子查詢
SELECT
vtiger_salesorder.salesorderid,vtiger_salesorder.salesorder_no,vtiger_salesorder.sostatus,
(SELECT se.s_date
FROM
softMax_events as se
INNER JOIN vtiger_salesorder as bm ON bm.salesorderid = se.orderNum
where (bm.sostatus = 'Order' AND se.orderNum = vtiger_salesorder.salesorderid) AND se.appointTyp='60'
group by bm.salesorderid Limit 0,1) As sdate
FROM
vtiger_salesorder
Inner Join vtiger_crmentity ON vtiger_salesorder.salesorderid = vtiger_crmentity.crmid
WHERE (vtiger_salesorder.sostatus = 'Order')
and (vtiger_crmentity.deleted<>'1')
您好zzzz,我很好... thansk – user3428559
@ user3428559,如果有幫助,您可以接受答案。 – NAZIK