Als uw primaire sleutel auto-increment is, kunt u dit proberen;
PreparedStatement statement= con.prepareStatement("INSERT INTO jam(name)
VALUES (?)");
statement.setString(1,"Charlie Sheen");
statement.execute();
Als uw primaire sleutel auto-increment is, kunt u dit proberen;
PreparedStatement statement= con.prepareStatement("INSERT INTO jam(name)
VALUES (?)");
statement.setString(1,"Charlie Sheen");
statement.execute();