| От | Mike Fowler |
|---|---|
| Тема | Re: PG 9.0.3. How to select rows from xml |
| Дата | |
| Msg-id | 4D997865.7080603@mlfowler.com обсуждение исходный текст |
| Ответ на | PG 9.0.3. How to select rows from xml (emanov <emanovs@yandex.ru>) |
| Список | pgsql-hackers |
Hi,
On 02/04/11 20:47, emanov wrote:
> Hi all!
> What i need is transform xml document to table like that:
> insert into tmp("Name", "Value")
> select t.Name, t.Value from myxml.Nodes("/doc/person") as
> t('Name:varchar|Value:int')
> or similar. In fact I have many rows with many columns.
>
> How I can do it with PG 9.0.3 where I can't find xpath_table?
>
Though deprecated, the xml2 contrib module with xpath_table is still
present. Installation instructions can be found on
http://www.postgresql.org/docs/9.0/static/contrib.html and the module is
documented at http://www.postgresql.org/docs/9.0/static/xml2.html.
Regards,
--
Mike Fowler
Registered Linux user: 379787
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера