MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Jin Hui Date:March 29 1999 1:13am
Subject:Question about query
View as plain text  

I have a query like
select id from atable where truncate(c1/1000000) = 321

I learned that following query has the same function
select id from atable where c1 like '321______'

I'd like to know which is faster. Or anyone know how to do integer division
in MySQL faster.

And if I make a index on c1 or a index on c1/1000000, which index will
increase the query speed, or none index is helpful. 


Best Regards,
Jin Hui

Question about queryJin Hui29 Mar
Re: Question about queryEd Carp29 Mar
RE: Question about queryJin Hui29 Mar
  • RE: Question about queryMichael Widenius29 Mar