Re: can mysql use an index where like used

2007-06-21 Thread Baron Schwartz
Ben Edwards wrote: On 21/06/07, Baron Schwartz <[EMAIL PROTECTED]> wrote: Hi Ben, Ben Edwards wrote: > Can Mysql 4.20 use an index where like 'xx%' is in the where > clause against the column. > > i.e. index table1(col1) > > from table1 > where table1.col1 like 'something%' Yes, it can use

Re: can mysql use an index where like used

2007-06-21 Thread Baron Schwartz
Hi Ben, Ben Edwards wrote: Can Mysql 4.20 use an index where like 'xx%' is in the where clause against the column. i.e. index table1(col1) from table1 where table1.col1 like 'something%' Yes, it can use an index on LIKE prefixes. Using a function such as LEFT(col1, 9) = 'something' wil

can mysql use an index where like used

2007-06-21 Thread Ben Edwards
Can Mysql 4.20 use an index where like 'xx%' is in the where clause against the column. i.e. index table1(col1) from table1 where table1.col1 like 'something%' Regards, Ben -- Ben Edwards - Bristol, UK If you have a problem emailing me use http://www.gurtlush.org.uk/profiles.php?uid=4 (emai