pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Muhlis Akdag <mican58@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: insert bytea data manually
Date: Mon, 03 Oct 2005 23:10:18 +0200
Message-ID: <43419E3A.5090307@gmail.com> (raw)

Hi,

I have a question about bytea columns. I want manually select the 
column.. this looks like this..when I export it from pgadmin into a csv 
file..
"10";"PK\003\004\024\000\000\000\000\000\214\22453\341\24519\036\000\000\000\03.........."

so how I can inert it back to the database manually.. like this..

insert into files (docid,file) values 
(1,'PK\003\004\024\000\000\000\000\000\214\22453\341\24519\036\000\000\000\03..........")

but it brings error when i try this..?

can sombody help me how i can extract bytea data and insert it back 
manually with SQL commands?







view thread (2+ messages)  latest in thread

Message-ID: <43419E3A.5090307@gmail.com>
Permalink:  ../43419E3A.5090307@gmail.com/
Also on:    postgresql.org/message-id/43419E3A.5090307@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mican58@gmail.com
  Subject: Re: insert bytea data manually
  In-Reply-To: <43419E3A.5090307@gmail.com>
  References: <43419E3A.5090307@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox