Re: order by a XML column

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: order by a XML column
Дата
Msg-id m3elinqh5t.fsf@varsoon.denali.to
обсуждение исходный текст
Ответ на order by a XML column  (mclo@asia.com (Chris))
Список pgsql-general
mclo@asia.com (Chris) writes:

> Hi,
>
> I have a table with a varchar column which store XML in this format :
>
> <A>Value of A</A><B>Value of B</B><C>Value of C</C>
>
> How can I sort the result by this column and the content of one of the tag.

You need to write a custom comparison function and use "ORDER BY ... USING".

-Doug
--
Doug McNaught       Wireboard Industries      http://www.wireboard.com/

      Custom software development, systems and network consulting.
      Java PostgreSQL Enhydra Python Zope Perl Apache Linux BSD...

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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: Select not using primary key index
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: JDBC Prepared Statement Bug