Não estou conseguindo fazer o WHERE no oracle de nenhuma forma, segue abaixo como estou tentando executar.
Connection conn = Conexao.getInstance().getConnection();
try {
String sql = "SELECT IBGE, estado from T_ARQMUNIC where nome = ? and estado = ?";
//"SELECT IBGE, estado from T_ARQMUNIC where nome = '" + municipioDest.trim().replace("'", "") + "' and estado = '" + estadoDest.trim() + "'";
PreparedStatement sta = conn.prepareStatement(sql);
sta.setString(1, municipioDest.trim().replace("'", ""));
sta.setString(2, estadoDest.trim());
ResultSet rs = sta.executeQuery();
sta = conn.prepareStatement(sql);
while (rs.next()) {
codMuniDest = String.valueOf(rs.getInt(1));
ufDest = rs.getString(2);
System.out.println("cheguei");
}
} catch (SQLException e) {
System.out.println("Ocorreu um erro interno " + e.getMessage());
}