使用 java.Presently 我正在使用以下代码片段从 postgres db 表中删除数千行的最快方法:
query = "DELETE FROM NODE WHERE SEQUENCE_NO = " + sequenceNo;
insertOrDelete(query);
insertOrDelete(String query){
statement = createStatement();
numRowUpdated = statement.executeUpdate(query);
closeStatement(statement);
}