20 May,2013 by Tom Collins
UDF in DB2 . How can I view details on user defined functions?
To view user defined functions - UDF in DB2– use the SYSCAT.ROUTINES catalog view to return a full list of user defined functions including – scalar function , table function, sourced function, method and procedure.
The example query returns Functions (routinetype = ‘F’ ) and User Defined\SQL Bodied (origin in ('U', 'Q')
select r.routinename as FunctionName, r.text as FunctionBody from syscat.routines r where r.routinetype = 'F' and r.origin in ('U', 'Q')
DB2 list schemas of a database
DB2 SET CURRENT SCHEMA - DBA DB2
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |