Answer the question
In order to leave comments, you need to log in
How to copy data from one file to another in Java with different connection settings?
public void asd(Connection connExt, Connection conn, PreparedStatement pst, ResultSet rs
) {
try {
String sql = "INSERT INTO journal SELECT * FROM journalExt WHERE 1";
pst = conn.prepareStatement(sql);
pst.setQueryTimeout(40000);
pst.execute();
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e);
} finally {
try {
rs.close();
pst.close();
} catch (Exception ex) {
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question