Re: column "id" is of type integer but expression is of type character

Поиск
Список
Период
Сортировка
От Alan Hodgson
Тема Re: column "id" is of type integer but expression is of type character
Дата
Msg-id 200901081114.07578@hal.medialogik.com
обсуждение исходный текст
Ответ на column "id" is of type integer but expression is of type character  ("Andrus" <kobruleht2@hot.ee>)
Список pgsql-general
On Thursday 08 January 2009, "Andrus" <kobruleht2@hot.ee> wrote:
> Commands:
>
> create temp table test ( id int, baas char(10) );
> create temp table lisa ( id int, baas char(10) );
> alter table lisa drop column id;
> INSERT INTO test SELECT * FROM lisa;


> How to fix ?

INSERT INTO test (baas)  SELECT baas FROM lisa;


--
Current Peeve: The mindset that the Internet is some sort of school for
novice sysadmins and that everyone -not- doing stupid dangerous things
should act like patient teachers with the ones who are. -- Bill Cole, NANAE

В списке pgsql-general по дате отправления:

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: column "id" is of type integer but expression is of type character
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: column "id" is of type integer but expression is of type character