ITPub博客

首页 > 数据库 > > Gauss 100 关联删除

Gauss 100 关联删除

作者:GaussDB_数据库 时间:2020-02-21 10:35:44 0 删除 编辑
DELETE training FROM education JOIN training ON education.staff_id = training.staff_id;
或者
DELETE FROM training USING education JOIN training ON training.staff_id = education.staff_id;


主:join 关联表,数据表不能为临时表。

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959250/viewspace-3122924/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2020-01-06

  • 博文量
    2907
  • 访问量
    19228