pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ben Morrow <ben@morrow.me.uk>
To: dennis@teltel.com
To: pgsql-sql@postgresql.org
Subject: Re: Help : insert a bytea data into new table
Date: Tue, 9 Mar 2010 03:46:26 +0000
Message-ID: <20100309034626.GA12083@osiris.mauzo.dyndns.org> (raw)
In-Reply-To: <hn49e1$2eob$1@news.hub.org>

Quoth dennis <dennis@teltel.com>:
> 
>     I need to copy some data to new table.
> But I encounter some error message.
> the table structure
> Table A:
>   c1  char
>   c2  bytea
> 
> Table B:
>   c1  char
>   c2  bytea
> 
> 
> My sql command:
> insert into B as select * from a where c1=xxx

'AS' isn't valid there. What is xxx? Is it a field you haven't shown us,
or is it a quoted string?

> error:
> operator does not exist: text || bytea

That command (with 'xxx' quoted and the AS removed) doesn't give that
error with those table definitions, so you will need to show us your
actual query.

Ben




view thread (9+ messages)  latest in thread

Message-ID: <20100309034626.GA12083@osiris.mauzo.dyndns.org>
Permalink:  ../20100309034626.GA12083@osiris.mauzo.dyndns.org/
Also on:    postgresql.org/message-id/20100309034626.GA12083@osiris.mauzo.dyndns.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ben@morrow.me.uk, dennis@teltel.com
  Subject: Re: Help : insert a bytea data into new table
  In-Reply-To: <20100309034626.GA12083@osiris.mauzo.dyndns.org>

* 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