11.7 CURRENT_USER
Available inDSQL, PSQL
TypeVARCHAR(63)
Syntax
1. CURRENT_USER
CURRENT_USER is a context variable containing the name of the currently connected user. It is fully equivalent to Section 11.24, USER.
Example
1. create trigger bi_customers for customers before insert as
2. begin
3. New.added_by = CURRENT_USER;
4. New.purchases = 0;
5. end
