the problem is, I have a procedure which returns a set of values and the column name returned by that procedure is friend, it accepts 1 parameter that is username,
now I have two queries:
call test('nishchal') and call test('nootan') now I want the common values returned by these two procedure, any solution guys??
My procedure has these lines of codes
begin
select u_name` as friend
from table_name
where f_id = username
end
where username is the parameter passed
It’s a bit clunky but you could put the results into a temporary table.