Re: select Xpath is returning values with {}

Поиск
Список
Период
Сортировка
От dinesh kumar
Тема Re: select Xpath is returning values with {}
Дата
Msg-id CALnrH7p4y3BJxYcFzhZ4PSGAafxh8x5HFuWPg06OvpdRaoZKVg@mail.gmail.com
обсуждение исходный текст
Ответ на select Xpath is returning values with {}  (gajendra s v <svgajendra@gmail.com>)
Список pgsql-general
On Tue, Nov 12, 2013 at 8:46 PM, gajendra s v <svgajendra@gmail.com> wrote:
Hi All,

How to remove {} from output 

I am using below query 

select (xpath('//Grading_Automated',(select xmlgrading from km_course_mast where id='100000'))) from km_course_mast where id='100000'

The out is below 

"{"<Grading_Automated>
 
</Grading_Automated>"}"

 
The xpath return type is of type array. PG returns the array data, enclosed in "{}". If you want to remove these "{}" braces, then use either array_to_string(xpath(.......)) or trim the braces from the xpath output.

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

Предыдущее
От: Christian Ullrich
Дата:
Сообщение: Re: GSSAPI server side on Linux, SSPI client side on Windows
Следующее
От: Brian Crowell
Дата:
Сообщение: Re: GSSAPI server side on Linux, SSPI client side on Windows