ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
[TOC] # union 注意union默认会去重,`union all`可以包含重复 # update可以修改多表 ~~~ update boys bo inner join beauty b on bo.`id` = b.`boyfriend_id` set b.`phone` = '113' where bo.`boyName`='jack'; ~~~ # delete删除多表 delete后面跟你要删除表的别名,写那个就删那个符合条件的行 ~~~ delete 表1的别名,表2的别名 from 表1 别名, 表2 别名 where 连接条件 and 筛选条件; ~~~ # inset后跟select ~~~ insert into beauty(id, name, phone) select 26, 'jack', '113'; ~~~