SCOPE_USER

Purpose

This function returns the current scope user within a query, which is either identical to CURRENT_USER or the owner of the view or the virtual table if the function refers to one.

Syntax

scope_user::=

Example

CREATE VIEW scope_view AS SELECT SCOPE_USER;

SELECT * FROM scope_view;