I have a table with these columns: Player_name | Item_name | Amount
I do not know how to perform this conditional INSERT
:
INSERT INTO Needed_items(Player_name,Item_name) VALUES('foo','foo');
if Player_name
and Item_name
already exist, so if a Player already owns a given item, I need to increment Amount
field, else I need to insert a new row into the table.
Thanks for the help