关于 update别名 与update select
正确写法: update 别名 set 别名点字段 =xxxx
UPDATE a SET a.StandardID = (SELECT b.StandardID FROM SurgeryMappingRecycle b, SurgeryMappingHistory c WHERE a.ID = b.ID) FROM SurgeryMappingHistory a
错误写法:
update table1 a set a.ID='1'