423,680 Members | 2,439 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,680 IT Pros & Developers. It's quick & easy.

Can I RETURN SET OF typeX or typeY in a function depending of a parameter ?

P: 1
That I want to ask is if I can return type A or B in the function depending of a parameter. For example

CREATE or replace FUNCTION public.getDataFromSearch(
searchString VARCHAR,
typeOperation INTEGER)

If typeOperation is 'A' can I return a query with the structure or typeA and if is 'B' the second type ?
3 Weeks Ago #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.