首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle 多表剔除 同时删除多表中关联数据

2012-10-08 
oracle 多表删除 同时删除多表中关联数据DELETE from COMIC_ANIMATION_ENTITY en where EXISTS (select 1

oracle 多表删除 同时删除多表中关联数据

DELETE from COMIC_ANIMATION_ENTITY en where EXISTS
(select 1 from COMIC_ANIMATIONEPISODE ep where en.ITEM_CONTENT_CODE=ep.content_code and ep.content_type=4);

delete from comic_animation_to_type type1 where exists
(select 1 from comic_animation a where type1.animation_id=a.id and a.content_type=4);

delete from comic_animation_to_classify cl where exists
(select 1 from comic_animation an where cl.animation_id=an.id and an.content_type=4);

delete from comic_animationepisode ep where ep.content_type=4;
delete from comic_animation an where an.content_type=4;

热点排行