Upsert는 이름에서 어느정도 유추할 수 있듯이 Update + Insert를 합친 말임
즉, Upsert는 중복되는 값이 있다면 Update를 하고 중복되는 값이 없다면 Insert를 하는 쿼리임
insert into [table name] (col1,col2,col3,) values(val1,val2,val3) on duplicate key update "(col1)" = "(val1)"