I have this function:
DECLARE _first_name text; _last_name text; BEGIN SELECT emp.first_name INTO _first_name, emp.last_name INTO _last_name, F