Hello,
I have the following types/table:
create or replace type point as object(
x number(3),
y number(3),
z number(3)
);
/
create or replace type cube as object(
id number(5),
bottom_corner point,
top_corner point,
member function volume return number,
member function surface return number,
pragma restrict_refere nces(volume, WNDS),
pragma restrict_refere nces(surface, WNDS)
);
/
create table Cubes of cube(
id primary key,
bottom_corner not null,
top_corner not null
);
give me these errors:
create or replace procedure cube_intersect( ident IN NUMBER) as
this_cube Cubes%ROWTYPE;
....
....
begin
select * into this_cube from Cubes where id = ident;
^ERROR
36/3 PL/SQL: SQL Statement ignored
36/23 PL/SQL: ORA-00947: not enough values
Thanks,
Vishal
I have the following types/table:
create or replace type point as object(
x number(3),
y number(3),
z number(3)
);
/
create or replace type cube as object(
id number(5),
bottom_corner point,
top_corner point,
member function volume return number,
member function surface return number,
pragma restrict_refere nces(volume, WNDS),
pragma restrict_refere nces(surface, WNDS)
);
/
create table Cubes of cube(
id primary key,
bottom_corner not null,
top_corner not null
);
Why does the following line in a procedure i have written
create or replace procedure cube_intersect( ident IN NUMBER) as
this_cube Cubes%ROWTYPE;
....
....
begin
select * into this_cube from Cubes where id = ident;
^ERROR
36/3 PL/SQL: SQL Statement ignored
36/23 PL/SQL: ORA-00947: not enough values
Thanks,
Vishal
Comment