DBPROCEDURES

Prerequisites

You have generated the demo data for the SQL Tutorial.

Log on to the demo database instance DEMODB as user MONA.

Create database procedures. Proceed as described in SQL Tutorial, Database Procedures.

Examples

You can use the system table DBPROCEDURES to determine the following database information, among other things:

?     All database procedures of the HOTEL schema and their comments that were created in the last 10 days

SELECT schemaname, dbprocname, comment
  FROM DOMAIN.DBPROCEDURES
    WHERE schemaname = 'HOTEL' AND createdate >= subdate(date,10)

?     All database procedures of the SYSLOADER schema and their definition

SELECT schemaname, dbprocname, definition
  FROM DOMAIN.DBPROCEDURES
    WHERE schemaname = 'SYSLOADER'

Parameters of a database procedure: see DBPROCPARAMS