pgxml_xpath - solution.

Поиск
Список
Период
Сортировка
От Jeff MacDonald
Тема pgxml_xpath - solution.
Дата
Msg-id HJEPJELDKPJEEIIFNLNHEEEACAAA.jeff@interchange.ca
обсуждение исходный текст
Список pgsql-general
hi,

john gray sent me this solution.

>>I had to work this out for someone a month or so back, and there is an
>>easy answer.

>>Use 'string(//@dft_entityid)' for the XPath and it will do this for you.
>>If you do this a lot, you might want to write a wrapper funtion to modify
>>your XPath string this way.

which means the following query works..

cfm=> SELECT loginid,pgxml_xpath(userdata,'string(//@dft_entityid)','','')
FROM urdr_users where id = 110;
 loginid | pgxml_xpath
---------+-------------
 110     | 74
(1 row)

Jeff.


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: slow update & index question
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: client side software for windows, where?