I would like to see the code for a function defined like below. This function
-lives in a schema called MYSCHEMA
-makes usage of a shared library installed.
I tried to use the following but it doesn't work.
select r.routinename as FunctionName, r.text as FunctionBody from
syscat.routines r where r.origin in ('U','R') and ROUTINESCHEMA='TRADE'
AND ROUTINETYPE ='F'
How can I do that?
create or replace function MyFunction(varchar(60))
returns table(
..fields..
)
external name 'mySharedLib.so!function'
language c
parameter style sql