TOO_MANY_ROWS
Dear Experts,
I am newbie to MYSQL
please help to return too_many_rows in mysql when procedure more than one row.
tried proc.
create or replace procedure TOO_MANY_ROWS
(in ENAME varchar(255))
begin
DECLARE VALUE_RETURN VARCHAR(255);
declare exit handler for 1062 select 'TOO MANY ROWS';
select bt.name INTO VALUE_RETURN from employees bt inner join dept ec
on bt.id=ec.it
where ENAME=V_NAME;
END;
Error:
Declare VA AT LINE1
Subject
Views
Written By
Posted
TOO_MANY_ROWS
1364
July 13, 2020 08:31AM
436
July 13, 2020 08:39AM
596
July 13, 2020 09:20AM
770
July 13, 2020 10:37AM
455
July 13, 2020 11:07AM
395
July 13, 2020 02:54PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.