The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, osieman.
Asked: March 10, 2021 - 6:57 am UTC
Last updated: March 16, 2021 - 11:20 am UTC
Version: 12c
Viewed 1000+ times
Delete from t1 where pk = 'myuser'
Delete from t1 where pk = 'MYUSER'
A reader, March 15, 2021 - 5:28 pm UTC
Dieter, March 15, 2021 - 6:56 pm UTC
create table tab_a (id varchar2(10)); create view v_tab_a as select lower(id) id from tab_a; CREATE OR REPLACE TRIGGER del_tab_a INSTEAD OF DELETE ON v_tab_a FOR EACH ROW BEGIN DELETE FROM tab_a a WHERE upper(a.id) = upper(:old.id); END; insert into tab_a (id) values ('ABC'); commit; select * from v_tab_a; delete from v_tab_a where id = 'abc';
A reader, March 18, 2021 - 12:35 pm UTC
Check out more PL/SQL tutorials on our LiveSQL tool.
PL/SQL reference manual from the Oracle documentation library