Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

identify chr(49824) in function

va44725815Apr 29 2013 — edited Apr 29 2013
Hi,

I am trying to identify reocrds where i have chr(49824) value. Worked when tried in sql but failed when tried within procedure in plsql?

Works in sql
select *
       from temp
        where instr(name,chr(49824) )>0

--when trying in small procedure written in plsql, it does not work, please anyone can guide how can i achieve this task in plsql

  if instr(V_name,chr(49824)) >0 then

                v_name:=replace(v_name, chr('49824'),'') ;
                 dbms_output.put_line('after removing chr(49824)'||v_name);


            end if;
Best Regards,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2013
Added on Apr 29 2013
3 comments
820 views