I want to Check the value of data Before insertion in a table.Like ,if things like ” or & come in the data,it should ignore it or insert using some escape sequence .
create table test (checkit varchar2(40));
insert into test values("Here is the & test data");
or
insert into test values("Here is the " test data");
Is there a way to do that in oracle?
thanks
EDIT
I want to know the solution especially for Characters like & , ” etc not for normal data as shown in the example.
You can do it using BEFORE trigger.
Here is an example replacing & with
&and ” with"Output:
Obviously replacement strings can be whatever.