邹老大来帮帮我,各位高手也来帮帮我,急着要结果:(
wofan 2004-12-03 10:45:19 我有两个表A与B
A表为价格表,B表为调价表
A表有ItemID,CustomID,Price
B表有ItemID,CustomID,Price,BeginDate,EndDate
我通过单据往B表里面录入调价的信息
现需要有一个自动执行的存储过程
根据B表BeginDate往A表往写入ItemID,CustomID,Price,如果A表中存在历史Price则更新Price
另外再根据B表的EndDate来执行更新A表,原则是找到B表中BeginDate最新的记录来更新A表中Price
每天更新一次