I have the following class:
The code runs correctly executing may SQL statements.
The problem is that executing "stmt.executeUpdate(sql);" in method main I get the error "java.sql.SQLException: PRIMARY KEY must be unique". However table "document" has no rows. I just can't understand.