RE: [PHP-DB] mysql Index?
| From: | Cami | Date: | Tue, 06 Nov 2001 17:02:01 +0000 |
| Subject: | RE: [PHP-DB] mysql Index? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14065@lists.php.net to get a copy of this message | ||
Check the mysql manual:
http://www.mysql.com/doc/M/y/MySQL_indexes.html
hope it helps,
Cami
-----Original Message-----
From: shi [mailto:shimon@oek.dk]
Sent: Tuesday, November 06, 2001 3:59 PM
To: php-db@lists.php.net
Subject: [PHP-DB] mysql Index?
Hi group
I'm trying to force mysql to use a index, but I get an error in the sql
statement. The sql looks like this:
select * from indlaeg use index(message) where something = something
The problem is, that if it doesn't use the index it will have to search more
than 100000 records and that is to slow.
I hope that some one can help me
Thanks
Shimon
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net