Insert data and if already inserted then update in sql

后端 未结 7 3068
眼角桃花
眼角桃花 2021-02-20 13:18

I simply want to insert the data to a SQL database table and if there is some data inserted already then I want to update that data. How can I do this using Java. Kindly help me

7条回答
  •  臣服心动
    2021-02-20 14:00

    you have to first check the data exist in table if exist then use update query otherwise insert data its simple

提交回复
热议问题