Skip to Main Content

Java Database Connectivity (JDBC)

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!

Performance issue in prepared statement with sql function "LIKE"

843859Jun 15 2006 — edited Jan 20 2015
I tried to execute query with sql function Like. I used prepared statement. Driver : oracle.jdbc.driver.OracleDriver. Same query runs fine when I run in TOAD or SqlPlus. Could anyone help me and tell me is there any problem in prepared statement?
Normal query works fine with Like, but problem is happening when it involes sub query too. When I replaced "like" with "=" it works fine. With "=" it takes 50 msec and with "Like" it takes 2 minute.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 6 2008
Added on Jun 15 2006
16 comments
550 views