轻设计 / 轻生活 / 轻日记 / 轻梦想
=== zhoumojianshe ===
MERGE INTO "$tableHead$".tb$AccYM$_ChgDetail chg USING ( select * from $TEMP_ZKCharge$ ) DT ON (chg.BillNumber = DT.ChgBillNumber) WHEN MATCHED THEN UPDATE SET chg.CollectType = 2, chg.CollectDate = DT.BuildDate, chg.CollectManCode = DT.BuildManCode, chg.CollectManName = DT.BuildManName, chg.CollectSAMBillNumber = DT.BillNumber;注意:在Sql Server中执行时,语句结束必须带分号