Current_application

sql

FUNCTION Current_application RETURNS CHAR(31)

Description

This function serves for getting the name of opened application. It can be used both in the client language and SQL language.

Function value

This function returns the name of the currently opened application (max. 31 characters).

The Schema_uuid function returns the binary identification of the opened application.

Example:

Select the tables of the opened application

SELECT Tabtab.tab_name
FROM Objtab, Tabtab
WHERE Objtab.apl_uuid=Tabtab.apl_uuid
 AND Objtab.obj_name=Current_application

See