rm_appcontext

Removes a specific application context, or all application contexts.

rm_appcontext ("context_name", "attribute_name")

context_name – a row specifying an application context name, saved as datatype char(30).

attribute_name – a row specifying an application context attribute name, saved as datatype char(30).


Examples

The following three examples show how to remove an application context by specifying some or all attributes. Use an asterisk ("*") to remove all attributes in the specified context.

select rm_appcontext("CONTEXT1", "*")
---------
0

Use an asterisk ("*") to remove all the contexts and attributes.

select rm_appcontext("*", "*")
---------
0

This example shows a user attemptimg to remove a nonexistent context. The attempt fails, returning -1.

select rm_appcontext("NON_EXISTING_CTX", "ATTR2")
---------
-1

This example shows the result of a user without appropriate permissions attempting to remove an application context.

select rm_appcontext("CONTEXT1", "ATTR2")
---------
-1

Usage