SQL 命令 Oracle VM 中缺少逗号
Missing Comma in SQL Command Oracle VM
我收到一条错误消息,显示第 5 行缺少逗号。有人可以帮忙吗:(
Insert into Department values(
'Computer',
Faculty_n(
Faculty_t('Allan', Student_n(Student_t(PhD_v('David','Henry'), Masters_v('Emily','James','Kevin')))),
Faculty_t('Terry', Student_n(Student_t(PhD_v('Maria'), Masters_v('Alvi','Sandy')))));
供参考:
create type PhD_v as varray(4) of varchar(10);
/
create type Masters_v as varray(6) of varchar(10);
/
create type Student_t as object(
PhD PhD_v,
Masters Masters_v);
/
create type Student_n as table of Student_t;
/
create type Faculty_t as object(
Name Varchar(10),
Students Student_n);
/
create type Faculty_n as table of Faculty_t;
/
create table Department(
Name Varchar(10),
Faculty Faculty_n)
nested table Faculty store as Faculty_tb(
nested table Students store as Student_tb);
不知道是什么问题,希望有人能指导我
我不知道逗号是什么,但是 - 右括号 是 最后缺少的。
INSERT INTO Department
VALUES (
'Computer',
Faculty_n (
Faculty_t (
'Allan',
Student_n (
Student_t (PhD_v ('David', 'Henry'),
Masters_v ('Emily', 'James', 'Kevin')))),
Faculty_t (
'Terry',
Student_n (
Student_t (PhD_v ('Maria'),
Masters_v ('Alvi', 'Sandy'))))));
我收到一条错误消息,显示第 5 行缺少逗号。有人可以帮忙吗:(
Insert into Department values(
'Computer',
Faculty_n(
Faculty_t('Allan', Student_n(Student_t(PhD_v('David','Henry'), Masters_v('Emily','James','Kevin')))),
Faculty_t('Terry', Student_n(Student_t(PhD_v('Maria'), Masters_v('Alvi','Sandy')))));
供参考:
create type PhD_v as varray(4) of varchar(10);
/
create type Masters_v as varray(6) of varchar(10);
/
create type Student_t as object(
PhD PhD_v,
Masters Masters_v);
/
create type Student_n as table of Student_t;
/
create type Faculty_t as object(
Name Varchar(10),
Students Student_n);
/
create type Faculty_n as table of Faculty_t;
/
create table Department(
Name Varchar(10),
Faculty Faculty_n)
nested table Faculty store as Faculty_tb(
nested table Students store as Student_tb);
不知道是什么问题,希望有人能指导我
我不知道逗号是什么,但是 - 右括号 是 最后缺少的。
INSERT INTO Department
VALUES (
'Computer',
Faculty_n (
Faculty_t (
'Allan',
Student_n (
Student_t (PhD_v ('David', 'Henry'),
Masters_v ('Emily', 'James', 'Kevin')))),
Faculty_t (
'Terry',
Student_n (
Student_t (PhD_v ('Maria'),
Masters_v ('Alvi', 'Sandy'))))));