22.01.2012, 14:25
Hi, i tryed to make mysql query which:
Checks if 'volt' = 1 ant if that than it decrease's `voltcount` by 1. And the last check if `voltcount` <= 0 than 'volt' = 0
but it's just not working. May anyone generate such query? If you can't write a code give an example of codes i should use. Thanks.
Checks if 'volt' = 1 ant if that than it decrease's `voltcount` by 1. And the last check if `voltcount` <= 0 than 'volt' = 0
but it's just not working. May anyone generate such query? If you can't write a code give an example of codes i should use. Thanks.