update tablename set ... where id=1
if @@rowcount=0 
insert tablename (id) values (1)