List:General Discussion« Previous MessageNext Message »
From:Jay Blanchard Date:August 31 2010 6:03pm
Subject:RE: Even or Odds numbers
View as plain text  
[snip]
is there a function, using MySQL 5.0v, that can detect if a numerical
value is 
either an Even or Odd number
[/snip]

You can use modulus
http://www.roseindia.net/sql/mysql-example/mysql-modulus.shtml

Thread
Even or Odds numbersMike Blezien31 Aug
  • RE: Even or Odds numbersJay Blanchard31 Aug
  • Re: Even or Odds numbersChristoph Boget31 Aug
  • Re: Even or Odds numbersMike Blezien31 Aug
    • RE: Even or Odds numbersDaevid Vincent31 Aug