I created a procedure with ibexpert, does commit correctly, but at the time of running procedure , I get the error:
multiple rows in singleton select.
My intention is to list all the values in the city column of the target table. When I run select in a normal query , it returns all the values in the column, it just does not do the same in procedure , being same way.
The following is the code below:
create or alter procedure VER_TODOS_DEST
returns (CIDADES char(20))
as
begin
select cidade from destino
into :cidades;
suspend;
end