I am getting an invalid number exception. How do you use MOD
in WHERE
clause? I am wanting to update even or odd rows based on ID.
update employee set respstr1 = 'EP' where mid = 7246 and (mod(id/2) = 1)
Correct syntax for mod is
mod(id,2)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With