Read a CLOB data from an Oracle table and INSERT it into a BYTEA column in Postgres using jdbc?

Поиск
Список
Период
Сортировка
От SHARMILA JOTHIRAJAH
Тема Read a CLOB data from an Oracle table and INSERT it into a BYTEA column in Postgres using jdbc?
Дата
Msg-id 520691.57660.qm@web110712.mail.gq1.yahoo.com
обсуждение исходный текст
Ответы Re: Read a CLOB data from an Oracle table and INSERT it into a BYTEA column in Postgres using jdbc?  (Vyacheslav Kalinin <vka@mgcp.com>)
Список pgsql-general
Hi,
Im reading from an Oracle table and inserting the values to a postgres table thro' jdbc. Everything works fine except
forthe BLOB data in Oracle. 

My code snippet ...

  while (rs1.next())
        {
          for (int m=1;m<=colCount;m++)
            {
              pstmt.setObject(m, rs1.getObject(m));
            }
           pstmt.executeUpdate();
           connection2.commit();
           System.out.println("DONE");
        }


This inserts the data into teh postgres table but gives this error for a BLOB datatype....
 Exception in thread "main" org.postgresql.util.PSQLException: ERROR: column "columnXXX" is of type bytea but
expressionis of type bigint 

Any thoughts?

Thanks
Sharmila





В списке pgsql-general по дате отправления:

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: Postgres startup processes on linux?
Следующее
От: Jennifer Trey
Дата:
Сообщение: Optimization Wizard