Please help me.
select * from hoge where id=xxx;
If there is a data, I do it to do it, but though I implement this step, there is if in a program, and insert hoge set data=0 is troublesome if update hoge set data=data+1, a result are 0 lines.
May not you realize this procedure by a blow by SQL? replace hoge select id, data+1 as data from hoge where id = x; When it was this SQL, a result was not usable because data did not enter in the case of NULL.
After all will not there be it whether it is a plural number or a comb by SQL in an if sentence? If there is a simpler method, please teach it.
People thanking you in advance.