Error(2,7): Pls-00428: An Into Clause Is Expected In This Select Statement
Solution 1:
You won't be allowed to
SELECT count(*) FROM PLAN_VUELO
in a trigger on PLAN_VUELO
Don't use a trigger. Use a stored procedure.
Solution 2:
Inside a PL/SQL block you have to SELECT ... INTO something. I had an example of this in an answer to one of your questions yesterday. In this case you may want to select into a local variable, and use the result to then update another table.
But it looks like you're probably going to get lots of results back because you haven't restricted to the value you're interested in; the WHERE clauses don't filter on any of the inserted row's :NEW values. That will cause an ORA-02112. You need to make sure your select will return exactly one row, or look at cursors if you actually want multiple rows.
Solution 3:
Just add the into clause according to the result type, one example:
declare
my_result VUELO%rowtype;
beginselect v.*into my_result from VUELO v where id ='1';
end;
Post a Comment for "Error(2,7): Pls-00428: An Into Clause Is Expected In This Select Statement"