But that still won't use an index on the column since the query optimizer doesn't know where any other wildcard will be, whereas hardcoding the entire argument might use an index:where name like ? || '%'
where name like 'abc%'
In reply to Re^3: DBI placeholders and like statement
by runrig
in thread DBI placeholders and like statement
by jfroebe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |