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.getDataF romSearch(
searchString VARCHAR,
typeOperation INTEGER)
RETURNS SETOF typeA OR typeB AS ...
If typeOperation is 'A' can I return a query with the structure or typeA and if is 'B' the second type ?
User Profile
Collapse
Profile Sidebar
Collapse
rpccon
Last Activity: Oct 23 '18, 10:57 PM
Joined: Oct 23 '18
Location:
No activity results to display
Show More