
Tom H. answered 08/31/19
Beginner to Intermediate Technology
I use MySql almost exclusively, and for that system the query would look like this:
Insert into tablename(col1, col2, col3) values(val1,val2,val3) on duplicate key update col3=col3+1;
Other systems might have a slightly different syntax so you should check the documentation for the DBMS you are using.