Re: how to insert values into complex type field

Поиск
Список
Период
Сортировка
От Stephane Bortzmeyer
Тема Re: how to insert values into complex type field
Дата
Msg-id 20080404121653.GA12061@nic.fr
обсуждение исходный текст
Ответ на how to insert values into complex type field  (windwxc@sina.com)
Список pgsql-general
On Fri, Apr 04, 2008 at 04:32:36PM +0800,
 windwxc@sina.com <windwxc@sina.com> wrote
 a message of 74 lines which said:

> INSERT INTO attribute2005 VALUES(1,(23,'ee','ttt',('2005-01-01','2005-12-31')));

And why did you not post the error message? Because it is very clear:

ERROR:  malformed record literal: "ttt"
DETAIL:  Missing left parenthesis.

Indeed, attributetype has no column for this 'ttt' value. The correct
INSERT is:

INSERT INTO attribute2005 VALUES(1,(23,'ee',('2005-01-01','2005-12-31')));

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

Предыдущее
От: "Bhat, Suma"
Дата:
Сообщение: Upgrading from 8.2.0 to 8.3.1
Следующее
От: "Bhat, Suma"
Дата:
Сообщение: Re: Upgrading from 8.2.0 to 8.3.1