working with auto increment of mysql in JDBC

For explanation Watch video ::