9
是他們更有效的方式嗎?TSQL - 設置多個變量的有效方式
set @ShippingL = (select ShippingL from AuctionProducts where ProductID = @ProductID)
set @ShippingB = (select ShippingB from AuctionProducts where ProductID = @ProductID)
set @ShippingH = (select ShippingH from AuctionProducts where ProductID = @ProductID)
set @ShippingW = (select ShippingW from AuctionProducts where ProductID = @ProductID)
乾杯, -R
是的,速度快4倍,因爲它只有一個表訪問。 – gbn 2011-02-12 10:00:17