9
¿es su forma más eficiente de hacer esto?TSQL - forma eficiente de configurar múltiples variables
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)
Cheers, -R
sí, 4 veces más rápido porque solo tiene acceso a una tabla. – gbn