In 的用法

  update g
   set g.Fk_LugStatus_Id=g.Fk_LugStatus_Id*10+3,
     g.LugBill_AcctBillId=@pAcctBillId,
     g.Fk_Operator_Id=@pOperId,
    g.LugBill_AcceptTime=GETDATE()
  from lug.LugBill g,Lug.LugAcctDate a
  where g.Pk_LugBill_Id in (select value from sysInfo.Split(@pLugBillIds,','))
  and g.Fk_LugStatus_Id in(1,2)
  and g.Fk_CarryStation_Id=a.Fk_CarryStation_Id
  and g.LugBill_Drvdate between a.LugAcctDate_StartDate and a.LugAcctDate_EndDate

你可能感兴趣的:(In 的用法)