DECLARE FUNCTION GET(firstName IN STUDENT.firstName%TYPE) return STUDENT%ROWTYPE IS record STUDENT%ROWTYPE; BEGIN select * into record from STUDENT where STUDENT.firstName = firstName; return record; END;
It keeps complains for the last line..... I expected it to return multiple rows since there are many studetns with same first names. How should I modify this function to get multiple rows with same first names ?