mysql update/delete left join例子

    |     2017年7月18日   |   学习偶记   |     评论已关闭   |    1496

 

删除示例:

delete A  from A表名 as A left jion B表名 as B on A.id = B.id where 条件

更新示例:删除左表中包含右表数据行的字段
update A表名 as A right join B表名 as B on A.id = B.id set 表字段=值;

噢!评论已关闭。