List:General Discussion« Previous MessageNext Message »
From:Michael.Coll-Barth Date:August 31 2010 6:10pm
Subject:FW: Even or Odds numbers
View as plain text  
 

> -----Original Message-----
> From: Christoph Boget [mailto:christoph.boget@stripped] 

> http://dev.mysql.com/doc/refman/5.0/en/mathematical-functions.
html#function_mod
> 
> SELECT MOD( X, 2 )
> 
> where X is your number (or column name).  If 0, it's even if 
> 1 it's odd.

I think you mean, if it is non-zero, then it is odd.
Thread
FW: Even or Odds numbersMichael.Coll-Barth31 Aug
Re: FW: Even or Odds numbersChristoph Boget31 Aug
RE: FW: Even or Odds numbersMichael.Coll-Barth31 Aug