http://qs321.pair.com?node_id=1039813


in reply to Re^3: DBI placeholders and like statement
in thread DBI placeholders and like statement

Depending on the DBMS, you could give it an index hint: from tableA (index ndx). You are correct though, most optimizers would simply give it a hard coded selectivity rating which almost always guarantees that an index won't be chosen for that particular column.

Jason L. Froebe

Blog, Tech Blog

  • Comment on Re^4: DBI placeholders and like statement