private void impNotes(Connection srcConn, Connection trgConn) {
      /*-- додати новий
        insert into notes (dt,title,note,src)
        select '2009.01.01 01:01:01', 'test', 'test insert', 'test test'
          from (select 1) -- ?, ?, ?, ?
         where not exists (select 1 from notes where dt='2009.01.01 01:01:01');

        -- або оновити існуючий
        update notes
           set title=?,
                note=?,
                 src=?
         where dt=?
           and dtmod!=?;
       */
      try {
        // імпорт
        Statement cs;
        cs = srcConn.createStatement();
        ResultSet rs;
        rs = cs.executeQuery("select dt, title, note, src, dtmod from notes order by dt");
        //
        PreparedStatement ps;
        ps = trgConn.prepareStatement("insert into notes (dt, title, note, src) values (?,?,?,?)");
        PreparedStatement pt;
        pt = trgConn.prepareStatement("update notes set title=?, note=?, src=? where dt=?");
        String dt;
        String note;
        String title;
        String src;
        //
        conn.setAutoCommit(false);
        while (rs.next()) {
          dt = rs.getString(1);
          title = rs.getString(2);
          note = rs.getString(3);
          src = rs.getString(4);
          // перевірити існування
          String s = dtexists(dt);
          if ("".equals(s)) {
            ps.setString(1, dt);
            ps.setString(2, title);
            ps.setString(3, note);
            ps.setString(4, src);
            int i = ps.executeUpdate();
            conn.commit();
          } else {
          // оновити змінені - "t.dtmod < s.dtmod"
            try {
              Date tdt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(s);
              Date sdt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(rs.getString(5));
              if (tdt.compareTo(sdt) < 0) {
                pt.setString(1, title);
                pt.setString(2, note);
                pt.setString(3, src);
                pt.setString(4, dt);
                int i = pt.executeUpdate();
                conn.commit();
              }
            } catch (ParseException ex) {
              Logger.getLogger(MainForm.class.getName()).log(Level.SEVERE, null, ex);
            }
          }
        }
        conn.setAutoCommit(true);
        //
        rs.close();
        cs.close();
        ps.close();
      }  catch (SQLException ex) {
        Logger.getLogger(MainForm.class.getName()).log(Level.SEVERE, null, ex);
      }
    }