database - Oracle ORA-01422: exact fetch returns more than requested number of rows -


i trying create member function returns member names of expired members. select query works outside of member function , member function compiles no problems when call function error:

ora-01422: exact fetch returns more requested number of rows

i assume simple have not been using oracle long got bit stuck syntax. can this?

since query can return more 1 row need use cursor , cursor-for loop iterate on results. cannot return more 1 member name using varchar; use pl-sql table.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -