• I created mysql table with three columns[empid(primary key), empname, empsalary] using wordpress code. I want to insert a new row based on empid into table if it is not exist, if it is exist i want to update that the value of empsalary. How to write wordpress code for mysql if exist update else insert?

The topic ‘MySQL if exist update else insert’ is closed to new replies.