0
update  #temp_Or_GetPendingOrdersList
set     ApprovedOn = 
            dbo._UD_GetDate(dbo._UD_ConvertToCompanyTime(@HHA,#temp_Or_GetPendingOrdersList.ApprovedDate,#temp_Or_GetPendingOrdersList.branchid))
            + ' ' +dbo._UD_GetTime(dbo._UD_ConvertToCompanyTime(@HHA,#temp_Or_GetPendingOrdersList.ApprovedDate,#temp_Or_GetPendingOrdersList.branchid))
from    HConfigurations2 with(nolock), TimeZones with(nolock)
where   #temp_Or_GetPendingOrdersList.branchid = HConfigurations2.HHA_BRANCHID
        and HConfigurations2.TIME_ZONE = TimeZones.ZONE_ID
        and HConfigurations2.HHA_ID = @hha

存储过程中有一个更新语句,它具有非常高的工作表逻辑读取。如何减少它们?

在此处输入图像描述

4

0 回答 0