2013-07-09 79 views
0

我尝试实现继承与Oracle对象:继承与Oracle对象

CREATE OR REPLACE TYPE ENREG_320_BASE AS OBJECT (.....) NOT FINAL 
CREATE OR REPLACE TYPE ENREG_320_03 AS OBJECT UNDER ENREG_320_BASE(.....) FINAL 

我有一个错误:

Error: ORA-06550: line 1, column 29: PLS-00103: Encountered the symbol "UNDER" when expecting one of the following:

(not external JAVA_ BOUND_ The symbol "(" was substituted for "UNDER" to continue. ORA-06550: line 2, column 17: PLS-00103: Encountered the symbol "VARCHAR2" when expecting one of the following:

. () , * @ % & | = - + </> at in is mod remainder not range rem => .. <> or != or ~= >= <= <> and or like LIKE2_ LIKE4_ LIKE ORA-06550: line 3, column 27: PLS-00103: Encountered the symbol "VARCHAR2" when expecting one of the following:

有可能是我做的事情错了(第一次尝试在PLSQL继承) 。你能帮我吗 ?

PS:我用的是Oracle 10

工作谢谢

回答

1

创建子类型时,我们不需要为研究对象。它由UNDER关键字暗示。

您应该在浏览器中将文档加入书签。回答这样的问题非常好。 Find it here

+0

好吧,因为我读了一些其他文档,那里写的是那样 – mlwacosmos

+1

嗯,它是官方的Oracle文档吗?或者只是你在网上找到的随机的东西? – APC

+0

大学文档 – mlwacosmos