I have a SQL Server script like
declare @num int
begin
--//........while loops/ if conditions...
--//........remove code for simplicity
select num from tbl where cnd = @num;
end
I have done this in Oracle;
Declare v_num number;
begin
--//........while loops/ if conditions...
--//........remove code for simplicity
select num from tbl where cnd = v_num;
end;
/
I am getting an error
PLS-00428: an INTO clause is expected in this SELECT statement
The whole sql server query is about 500 line which is having may variables declared and assigned.... At the end of the script there is a select statement using many of those variables and multiple tables. How could I get that select statement work in Oracle?
sql queryis about500 linewhich is having may variables declared and assigned.... At the end of the script there is aselectstatement using many of those variables and multiple tables. How could i get thatselectstatement work inOracle.typo. corrected it.