get_appcontext

Returns the value of the attribute in a specified context.

get_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

This example shows VALUE1 returned for ATTR1:

select get_appcontext ("CONTEXT1", "ATTR1")
-----------
VALUE1

ATTR1 does not exist in CONTEXT2:

select get_appcontext("CONTEXT2", "ATTR1")
------------
NULL

This example shows the result when a user without appropriate permissions attempts to get the application context:

select get_appcontext("CONTEXT1", "ATTR2")
select permisssion denied on built-in get_appcontext, database dbid
----------
-1

Usage