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>
Re: column "id" is of type integer but expression is of type character Alan Hodgson <ahodgson@simkin.ca>
Re: column "id" is of type integer but expression is of type character Raymond O'Donnell <rod@iol.ie>
Re: column "id" is of type integer but expression is of type character Tom Lane <tgl@sss.pgh.pa.us>
Re: column "id" is of type integer but expression is of type character "Andrus" <kobruleht2@hot.ee>
Re: column "id" is of type integer but expression is of type character Raymond O'Donnell <rod@iol.ie>
Re: column "id" is of type integer but expression is of type character "Andrus" <kobruleht2@hot.ee>
Re: column "id" is of type integer but expression is of type character Richard Huxton <dev@archonet.com>
Re: column "id" is of type integer but expression is of type character "Andrus" <kobruleht2@hot.ee>
Re: column "id" is of type integer but expression is of type character Richard Huxton <dev@archonet.com>
Re: column "id" is of type integer but expression is of type character "Andrus" <kobruleht2@hot.ee>
Re: column "id" is of type integer but expression is of type character Richard Huxton <dev@archonet.com>
On Thursday 08 January 2009, "Andrus"  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
Дата:
От: Richard Huxton
Дата:
FAQ