LucidDbAppLib DROP SCHEMA IF EXISTS

From Eigenpedia

Jump to: navigation, search

Contents

Syntax

call applib.drop_schema_if_exists(schemaName, restrictOrCascade);

Purpose

Tries to drop a schema if it exists, otherwise does nothing.

Parameters

  • schemaName: name of schema to be dropped
  • restrictOrCascade: only legal values are 'CASCADE' (delete schema along with everything contained in it) and 'RESTRICT' (only delete empty schemas).

Example

call applib.drop_schema_if_exists('TESTSCHEMA', 'RESTRICT');

Source Code

http://p4web.eigenbase.org/open/dev/luciddb/src/com/lucidera/luciddb/applib/util/DropSchemaIfExistsUdp.java

Personal tools