Files
oracle-deep-data-security-lab/scenarios/03-pii-row-column-cell/sql/05_update_phone_test.sql
Rodrigo 07390ff902
Some checks failed
Repo Quality / structure (push) Has been cancelled
Fix PII lab persona tests
2026-05-18 12:02:13 -03:00

18 lines
395 B
SQL

SET PAGESIZE 100
SET LINESIZE 200
ALTER SESSION SET CURRENT_SCHEMA = ADMIN;
PROMPT Employee self-service update: change own phone number.
UPDATE dds_employees
SET phone = '555-9999'
WHERE UPPER(email) = ORA_END_USER_CONTEXT.username;
COMMIT;
SELECT employee_id, first_name, last_name, email, phone
FROM dds_employees
WHERE UPPER(email) = ORA_END_USER_CONTEXT.username
ORDER BY employee_id;