Current_Role Function; Considerations For Current_Role; Example Of Current_Role - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

CURRENT_ROLE Function

The CURRENT_ROLE function returns the role (ROLE.name) that you logged in as. This function
can be used anywhere in the query. The values returned are string datatype VARCHAR(64).
CURRENT_ROLE

Considerations for CURRENT_ROLE

The CURRENT_ROLE function returns the role name in ISO8859-1 encoding on a Neoview
platform that has the ISO88591 or SJIS configuration. It returns the role name in UCS2 encoding
on a Neoview platform that has the Unicode configuration. For more information on the Neoview
character set configurations, see the Neoview Character Sets Administrator's Guide.

Example of CURRENT_ROLE

Log on with role of role1.role1 and with an alias of abcd:
>>SELECT CURRENT_ROLE FROM (values(1)) x(a);
(EXPR)
-------------------------
role1.role1
--- 1 row(s) selected.
>>select user from (values(1)) x(a);
(EXPR)
-------------------------
abcd
--- 1 row(s) selected.
CURRENT_ROLE Function
375

Advertisement

Table of Contents
loading

Table of Contents