code_junkie

How to display source of DB2 SQL UDF

Nov 13th, 2011
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. -- To get the text of UDF
  2. select r.routinename as FunctionName, r.text as FunctionBody
  3. from syscat.routines r
  4. where r.routinetype = 'F' -- Function
  5. and r.origin = 'U' -- User defined
Add Comment
Please, Sign In to add comment