Entering content frame

This graphic is explained in the accompanying text DBPROCEDURES Locate the document in the library structure

Prerequisites

You have generated the HOTEL Demo Schema for the SQL Tutorial.

Log on to the database instance DEMODB as user MONA.

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

Examples

You can use the system tableDBPROCEDURES 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'

Note

Parameters of a database procedure: see DBPROCPARAMS

 

Leaving content frame