1

我创建了一个 person 类型的对象,我想创建一个名为 student typ 的子类型,但是当我尝试使用以下脚本在脚本文件中执行此操作时出现错误:


CREATE TYPE person_typ AS OBJECT(
first_name         VARCHAR2(30),
last_name          VARCHAR2(30),
dob                DATE,
telephone_Number   VARCHAR2(20),
mobile_Number      VARCHAR2(15),
address_Line1      VARCHAR2(25),
address_Line2      VARCHAR2(25),
city               VARCHAR2(30),
town               VARCHAR2(30),
postcode           VARCHAR2(8))
NOT FINAL;

CREATE TYPE student_typ UNDER person_typ(
student_Number    VARCHAR2(20),
student_Email    VARCHAR2(30))
;

显示的错误是:

Error at line 13: PLS-00103: Encountered the symbol "CREATE" 0.03 seconds
4

0 回答 0