表A sheet1$,表B T_DICT,要利用表A的数据更新表B中关联的数据:
UPDATE T_DICT SET BASYBM0= sheet1$.病案费用编码 FROM sheet1$ WHERE sheet1$.病案费用名称=t_dict.BASYMC0 AND KIND='项目'
将表t_dict备份为t_dictback
select * into t_dictback from t_dict
表A sheet1$,表B T_DICT,要利用表A的数据更新表B中关联的数据:
UPDATE T_DICT SET BASYBM0= sheet1$.病案费用编码 FROM sheet1$ WHERE sheet1$.病案费用名称=t_dict.BASYMC0 AND KIND='项目'
将表t_dict备份为t_dictback
select * into t_dictback from t_dict