xml and postgresql

Поиск
Список
Период
Сортировка
От aravind chandu
Тема xml and postgresql
Дата
Msg-id 152688.69120.qm@web31408.mail.mud.yahoo.com
обсуждение исходный текст
Ответы Re: xml and postgresql  (Gwyneth Morrison <gwynethm@toadware.ca>)
Список pgsql-general
Hi folks,

             I need to load xml data in to database can you tell me they way how do I import xml data into postgresql database.

lets dat this is the xml file

<bookstore>
<book category="CHILDREN">
<title>Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="WEB">
<title>Learning XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</book>
</bookstore>

so finally the table name should be bookstore and column names are category,title,
author,year,price and all the information in the xml file should be ported to the table
can you please tell me how to do this its a bit confusing to me as i am just a beginner to
this.

Thanks in advance,
Aravind.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Memory use in 8.3 plpgsql with heavy use of xpath()
Следующее
От: Klint Gore
Дата:
Сообщение: Re: pg_dump - lost synchronization with server: got message type "d", length 6036499