mysql数据库,将一个表的数据根据另一个表中的数据进行更新,如何实现?

2025-02-25 02:01:52
推荐回答(1个)
回答1:

update b,a
set num3=a.num1-a.num2
where b.name1=a.name2