要查询当前用户所在部门的全部员工,使用以下语句。
In order to query all employees that work in the same department as the current user, use this statement.
因此,使用该视图的任何用户只能够查看视图中属于所在部门的行。
So, any user that USES this view is only able to see the rows that belong to its own department.
视图可以在谓词中使用该全局变量的值,从而只选择分配给用户所在部门的行。
A view could use the value of this global variable in a predicate to select only those rows for which the user's department is assigned.
应用推荐