Hello


You may use query like this:

 select country from rates where (fieldvalue1 !=0) and (fieldvalue2 !=0) 

 and (fieldvalue3 !=0) order by country;



See:

  http://dev.mysql.com/doc/mysql/en/Comparison_Operators.html



 

 Louie Miranda <[EMAIL PROTECTED]> wrote:

> Im trying not to list the rows that has zero values.

> 

> this is my current select statement:

> 

> select id,country_city from rates_ocean order by country_city

> 

> The fields that i have to detect are:

> 

> fieldvalue1

> fieldvalue2

> fieldvalue3

> 

> how can i do this on mysql, ex:

> 

> select country from rates (if fieldvalue1,fieldvalue2,fieldvalue3 = 0

> (do not display)) order by country;

> 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com




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

Reply via email to