Топ-100
 

Описания команд доступны в программе CerebroSQL

CREATE CONTEXT

RDBMS Type: Oracle
Topic

CREATE [ OR REPLACE ] CONTEXT namespace
USING [ schema. ] package
[ INITIALIZED { EXTERNALLY | GLOBALLY }
| ACCESSED GLOBALLY
] ;

Example

CREATE CONTEXT hr_context USING emp_mgmt;

CREATE VIEW hr_org_secure_view AS
SELECT * FROM employees
WHERE department_id = SYS_CONTEXT('hr_context', 'department_id');