sqlServer中可用
update A set A.sex = B.sex, A.na=B.na from A,B where A.id = B.id
mysql没试,应该也可以
Mysql版本
UPDATE finance,users SET finance.signatory =users.last_name WHERE finance.signatory = users.id
sqlServer中可用
update A set A.sex = B.sex, A.na=B.na from A,B where A.id = B.id
mysql没试,应该也可以
Mysql版本
UPDATE finance,users SET finance.signatory =users.last_name WHERE finance.signatory = users.id