MYSQL JAVA , Adding Values and and displaying auto-incremented number -
if(i > 0){ joptionpane.showmessagedialog(null,"saved id = " + rs.getstring("id")); }
i adding value database, can add easily. there no option adding id database (as auto incremented within database). after data added, want auto incremented id number database.
if(i>0)
if data added successfully.
adding database fine, , in database id number increasing.