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!

String search in multiple columns of a table

856037May 8 2012 — edited May 8 2012
Hi,

I have a requirement in which i want to search a particular string say 'ABC' in columns col1,col2,col3 of table tab1. If the string is there in either of these columns i need to pick up that row.
Currently i am using 'INSTR' ,'OR' clauses to achieve this.
But it is taking long time to execute.
Can anybody suggest me an alternative for this which will give me better execution time.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 5 2012
Added on May 8 2012
4 comments
1,128 views