Returns the user name.
Returns
LONG VARCHAR
Note: The
result data type is a LONG
VARCHAR. If you use USER_NAME in a SELECT
INTO statement, you must have an Unstructured Data Analytics
Option license, or use CAST and set USER_NAME to
the correct data type and size.
Examples
The following statement returns the value “DBA”:
SELECT USER_NAME ( 1 ) FROM iq_dummy
The following statement returns the value “SYS”:
SELECT USER_NAME ( 0 ) FROM iq_dummy