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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -