if exists (select kisi from sayac_rapor where webid='toplam_sayac' and tarih='2007-05-07' limit 1) begin
update sayac_rapor set kisi=(kisi+1) where webid='toplam_sayac' and tarih='2007-05-07' limit 1; end
else begin
insert into sayac_rapor values(NULL,'toplam_sayac','2007-05-07','1');
end
Dene bir, yada then endif, fln denersin.