原文:https://blog.lmlyz.online
單列:
update student s, city c
set s.city_name = c.name
where s.city_code = c.code;
多列:
update a, b
set a.title=b.title, a.name=b.name
where a.id=b.id
原文:https://blog.lmlyz.online
單列:
update student s, city c
set s.city_name = c.name
where s.city_code = c.code;
多列:
update a, b
set a.title=b.title, a.name=b.name
where a.id=b.id