----- Original Message -----
> From: "Chris Knipe" <sav...@savage.za.org>
> To: mysql@lists.mysql.com
> Sent: Thursday, 24 July, 2014 11:17:50 AM
> Subject: Avoiding table scans...
> 
> mysql> SELECT MIN(ArtNumber) AS ArtNumber, MessageID FROM
> 78168ea0a9b3b513a1f2d39b559b406e WHERE ArtNumber > '2118806';

You're putting quotes around ArtNumber in your where clause, where it really is 
a bigint. Thus, you're forcing implicity conversion in the parser, instead of 
simply doing an index lookup.


-- 
Unhappiness is discouraged and will be corrected with kitten pictures.

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql

Reply via email to