SQL-J Language Reference
Page 72 of 121

CURRENT_USER

CURRENT_USER returns the authorization identifier of the current user (the name of the user passed in when the user connected to the database). If there is no current user, it returns APP.

USER, CURRENT_USER, and SESSION_USER are synonyms.

These functions return a string of up to 128 characters.

Syntax

CURRENT_USER

CURRENT_USER Example

VALUES CURRENT_USER