在SQL / Oracle中级联

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在SQL / Oracle中级联相关的知识,希望对你有一定的参考价值。

我怎样才能在Oracle中使用on Update Cascade?我读到这是不可能的。它在mysql或plsql中是允许的。但是如何在Oracle中做同样的事情呢?

例:

create table section(
id int not null primary key );

Create table student(
id int not null primary key,
name varchar2(30),
numSec int not null,
Constraint fk_section Foreign key(numSec) references section(id) ON UPDATE CASCADE);
答案

这不可能。

Oracle不支持更新级联。

以上是关于在SQL / Oracle中级联的主要内容,如果未能解决你的问题,请参考以下文章