MySQL Forums
Forum List  »  Optimizer & Parser

Re: index cannot be used when passing 'int' to 'varchar'
Posted by: Rick James
Date: June 11, 2012 11:27PM

> varchar can use the int index but int cannot use the varchar index
The rules for type conversion are rather complex and arbitrary.

If you want to discuss it further, please provide
SHOW CREATE TABLE
EXPLAIN SELECT ...

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: index cannot be used when passing 'int' to 'varchar'
1224
June 11, 2012 11:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.