in reply to Re: Where the advice to use DBI bind parameters can go wrong (long)
in thread Where the advice to use DBI bind parameters can go wrong (long)
Not in this case. Hints influence how a query gets executed, but not in ways (as far as I know) that would result in the answer being wrong. Honoring a "trust me, you can use an index" hint would result in a bogus result set if the value bound for a LIKE clause had a leading wildcard.
Hints are great when a query plan is joining tables in a reasonable, but suboptimal, sequence. Any way you join should give you the same result set.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Where the advice to use DBI bind parameters can go wrong (long)
by SarahM (Monk) on Jun 14, 2002 at 20:44 UTC |