MySQL Forums
Forum List  »  Optimizer & Parser

Re: index cannot be used when passing 'int' to 'varchar'
Posted by: liao zhifeng
Date: June 12, 2012 11:16PM


suppose mysql make that convert when passing 'int' to 'varchar' index lead to the unacceptable time cost.

what mysql will do when passing 'varchar' to 'int' index?

In the secend situation if mysql also make some convert and scan the entire index, It must be take very long time. but in the fact it's very quickly. Just like passing 'int' to 'int' index. I'm confused.

Options: ReplyQuote

Written By
Re: index cannot be used when passing 'int' to 'varchar'
June 12, 2012 11:16PM

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.