Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sp help text in postgresql

SELECT n.nspname AS schema
      ,proname AS fname
      ,proargnames AS args
      ,t.typname AS return_type
      ,d.description
      ,pg_get_functiondef(p.oid) as definition
--      ,CASE WHEN NOT p.proisagg THEN pg_get_functiondef(p.oid)
--            ELSE 'pg_get_functiondef() can''t be used with aggregate functions'
--       END as definition
  FROM pg_proc p
  JOIN pg_type t
    ON p.prorettype = t.oid
  LEFT OUTER
  JOIN pg_description d
    ON p.oid = d.objoid
  LEFT OUTER
  JOIN pg_namespace n
    ON n.oid = p.pronamespace
 WHERE NOT p.proisagg
   AND n.nspname~'<$SCHEMA_NAME_PATTERN>'
   AND proname~'<$FUNCTION_NAME_PATTERN>'
Comment

PREVIOUS NEXT
Code Example
Sql :: sql interview query questions 
Sql :: How should I pass a table name into a stored proc? 
Sql :: *Action: Options are to resolve the compilation/authorization errors, disable the trigger, or drop the trigger. 
Sql :: having all mysql 
Sql :: does sql auto increment start at number if it is removed? 
Sql :: meaning of localhost in mysql 
Sql :: truncate syntax in sql 
Sql :: mysql maven repo in spring boot 
Sql :: call object contructor and call methods of object 
Sql :: oracle connection 
Sql :: mysql select max and corresponding row 
Sql :: c# add a textbox in mysql select 
Sql :: sql to linq converter online free 
Sql :: add alternate add column sql 
Sql :: sql query tags 
Sql :: sql select starts with 
Sql :: Which MySQL statement is used to delete data from a database 
Sql :: join mysql 
Sql :: sakila database erd postgresql 
Sql :: Insert Row Providing Value Explicitly 
Sql :: sql query for login with email or username 
Sql :: SQL Remove Primary Key Constraint - SQL Server, Oracle 
Sql :: sql values that contains certain multiple ids 
Sql :: update user mysql 
Sql :: table values functions in SQL 
Sql :: How to Group by and concatenate arrays with all columns in PostgreSQL 
Sql :: how to get button for every record from mysql 
Sql :: sql joins explained 
Sql :: modificar tipo de dato sql server 
Sql :: condition in orderby mysql 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =