MYSQL删除三张表的联合信息

如要删除三张表的联合信息,使用MYSQL的左连接方法:LEFT JOIN ON

例如,删除三张表中张三的所有数据:

delete student,sc,stu 
    from student left join sc on student.sno = sc.sno 
                left join stu on sc.sno = stu.sno
                where student.sname = 张三;

MYSQL删除三张表的联合信息

上一篇:2020.5.23 centos8 安装mysql 5.7


下一篇:Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set