Hi,
basicly I want to increase a counter variable for a given "id" in a MySQL table (using UPDATE)
this won't work, if the entry does not exist. currently I'm checking for the existence of the "id" before I update and create a new entry if the "id" doesn't exist.
my question now, is there a way to accomplish that in one query?
thanks
basicly I want to increase a counter variable for a given "id" in a MySQL table (using UPDATE)
Code:
_stats (id, date, hits, visits)
my question now, is there a way to accomplish that in one query?
thanks
Comment