Ok so I am making a program in Java where it sends data to a MySQL server where it makes a new account. The table has 4 columns. ID, e-mail, username, and password. I know how to set the values of e-mail, username, and password but I need help setting ID. ID will auto-increment based on the last registered ID in the table.
Example: If the last registered user had an ID of 4 then it will auto-set the new user's ID to 5.