i want find some fields and then create if not exist but if exist it will update. i try this query
REPLACE INTO
tbl_master_data(part_number,description,rrp,discount_code,product_group,value_discount,stk) VALUES ('1100000-ax08', 'aas', 45, 'STD', 'ACC',50) WHEREpart_number= '1100000-ax08';
but something wrong in where clause. can tell me how it's work?