Re: Help : insert a bytea data into new table

From: Ben Morrow <ben(at)morrow(dot)me(dot)uk>
To: dennis(at)teltel(dot)com, pgsql-sql(at)postgresql(dot)org
Subject: Re: Help : insert a bytea data into new table
Date: 2010-03-09 03:46:26
Message-ID: 20100309034626.GA12083@osiris.mauzo.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Quoth dennis <dennis(at)teltel(dot)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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message dennis 2010-03-09 07:45:42 Re: Help : insert a bytea data into new table
Previous Message query 2010-03-08 12:25:23 list of all months