php - Update database field to -1 of current value -


i haven't been able come clear answer on this, figure before give up, ask here. i'm looking update database field 1 less current value without having query database, write code math, update database new value.

is possible, or have make own function so?

update 'table' set 'field' = 'field' - 1 'id' = 2 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -