sql - MOD operator in where clause -


am getting invalid number exception how use mod in where clause, want update or odd rows based on id.

update employee  set respstr1 = 'ep' mid = 7246 , (mod(id/2) = 1) 

correct syntax mod is

mod(id,2) 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -