SQL list of all the user defined functions in a database

后端 未结 4 1288
春和景丽
春和景丽 2020-12-29 19:03

I am looking for a SQL query that outputs the function definitions for all of the user defined functions in a database catalog.

I have found as far as



        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-29 19:27

    Similar to this solution: Query to list all stored procedures

    SELECT * 
      FROM DIDS0100.INFORMATION_SCHEMA.ROUTINES
     WHERE ROUTINE_TYPE = 'FUNCTION' 
        AND LEFT(ROUTINE_NAME, 3) NOT IN ('fn_')
    

提交回复
热议问题