update JL_SC_SM_SalesOrderDetail set JContractPrice = b.JTaxPrice,JContractAmount=b.JTaxAmount
from JL_SC_SM_SalesOrderDetail a , JL_SC_SMSalesContraEntry bwhere a.JSrcBillDetailID=b.id