The following SELECT statements will not use indexes:
mysql> SELECT * FROM tbl_name WHERE key_col LIKE "%Patrick%"; mysql> SELECT * FROM tbl_name WHERE key_col LIKE other_col;
I am using MYSQL on windows. So is that true?
When I use the below statement should I not index TitleName?
SELECT A.TitleName, C.ActorName FROM Titles A, ActorTitle B, Actors C Where A.TitleID=B.TitleID AND B.ActorID=C.ActorID AND A.TitleName LIKE '%PartOfName%' ORDER BY A.TitleName ASC
To request this thread, e-mail <mysql-thread124362@lists.mysql.com> To unsubscribe, e-mail <mysql-unsubscribe-gcdmg-mysql=m.gmane.org@lists.mysql.com> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
If you would like to report an abuse of our service, such as a spam message, please . Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .