The basic ideea is that when I call a procedure I want to get a set of data not just one value (by setting results to be INT and selection COUNT(id) for instance).
I would like to know how to change this procedure to get multiple values…
DELIMITER //
CREATE PROCEDURE getnames(IN id_in INT,OUT results ???)
BEGIN
set results=(select name from people where id>id_in);
END //
DELIMITER ;
Unless I’ve misunderstood then you should simply be able to alter your procedure to the following
This will simply return the results of the select query, in this case the set of names.