Re: Help : insert a bytea data into new table - Mailing list pgsql-sql

From Ben Morrow
Subject Re: Help : insert a bytea data into new table
Date
Msg-id 20100309034626.GA12083@osiris.mauzo.dyndns.org
Whole thread Raw
Responses Re: Help : insert a bytea data into new table  (dennis <dennis@teltel.com>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: Jasen Betts
Date:
Subject: Re: Does IMMUTABLE property propagate?
Next
From: Ben Morrow
Date:
Subject: Re: Help : insert a bytea data into new table