CURRENT_USER

<< CURRENT_TRANSACTION | FB 2.5 Language Reference | DELETING >>
<< CURRENT_TRANSACTION | FB 2.1 Language Reference | DELETING >>
<< CURRENT_TRANSACTION | FB 2.0 Language Reference | DELETING >>

CURRENT_USER

Available in: DSQL, PSQL

Added in: 1.0

Description

CURRENT_USER is a context variable containing the name of the currently connected user. It is fully equivalent to USER.

Type: VARCHAR(31)

Example

 create trigger bi_customers for customers before insert as
 begin
   New.added_by = CURRENT_USER;
   New.purchases = 0;
 end

See also:
CURRENT_ROLE
CURRENT_TRANSACTION
CURRENT_CONNECTION

back to top of page
<< CURRENT_TRANSACTION | FB 2.5 Language Reference | DELETING >>
<< CURRENT_TRANSACTION | FB 2.1 Language Reference | DELETING >>
<< CURRENT_TRANSACTION | FB 2.0 Language Reference | DELETING >>