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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -