| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Mark Papadakis | Date: | October 5 1999 9:53pm |
| Subject: | Re: A question about indexes | ||
| View as plain text | |||
Hi! No, it won't work. a select * from table where column like 'data%' would use the index if properly indexed. MarkP Moz wrote: >Hello everybody > >I've just a question: > >i've created a Table with an index for exemple: > >CREATE TABLE test (id not null int, tes text,key(id)); > >I've also read that MySQL don't use indexes when you use LIKE >argument >and the string starts with a wild char. >But if I write the follow command: > >SELECT * FROM test WHERE id=1 AND tes LIKE '%kdkds%' > >Does the index work in this case ? > > > > > > > >--------------------------------------------------------------------- >Please check >"http://www.mysql.com/Manual_chapter/manual_toc.html" >before >posting. To request this thread, e-mail >mysql-thread15219@stripped > >To unsubscribe, send a message to the address shown in the >List-Unsubscribe header of this message. If you cannot see it, >e-mail mysql-unsubscribe@stripped instead. >
| Thread | ||
|---|---|---|
| • A question about indexes | Moz | 5 Oct |
| • Re: A question about indexes | Bob Kline | 5 Oct |
| • Outputting Selects in Random Order | Hunter Hillegas | 5 Oct |
| • Re: Outputting Selects in Random Order | Thimble Smith | 6 Oct |
| • Re: Outputting Selects in Random Order | Bob Kline | 6 Oct |
| • Re: Outputting Selects in Random Order | Scott Hess | 6 Oct |
| • Re: Outputting Selects in Random Order | Thimble Smith | 6 Oct |
| • Re: Outputting Selects in Random Order | Bob Kline | 6 Oct |
| • Re: Outputting Selects in Random Order | Hunter Hillegas | 6 Oct |
| • Re: Outputting Selects in Random Order | Bob Kline | 6 Oct |
| • Re: Outputting Selects in Random Order | Martin Ramsch | 7 Oct |
| • Re: Outputting Selects in Random Order | Hunter Hillegas | 6 Oct |
| • Re: A question about indexes | Mark Papadakis | 5 Oct |
| • Re: A question about indexes | Bob Kline | 6 Oct |
