Re: Help : insert a bytea data into new table

Поиск
Список
Период
Сортировка
От Ben Morrow
Тема Re: Help : insert a bytea data into new table
Дата
Msg-id 20100309034626.GA12083@osiris.mauzo.dyndns.org
обсуждение исходный текст
Ответы Re: Help : insert a bytea data into new table  (dennis <dennis@teltel.com>)
Список 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 по дате отправления:

Предыдущее
От: Jasen Betts
Дата:
Сообщение: Re: Does IMMUTABLE property propagate?
Следующее
От: Ben Morrow
Дата:
Сообщение: Re: Help : insert a bytea data into new table