I am using Jtable to display and edit data. ID, name and marks columns are required to display here. I want both to edit existing value and insert new value in it. If certain ID exists, I need to update and if not I need to insert new record.
For this how to detect whether or not certain ID already exists there in database and some not? What type of code should I user here?
Please help me to overcome my problem.