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.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -