Re: Postgresql string parsing

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Postgresql string parsing
Дата
Msg-id 444B1A1A-F4E2-4763-AFCA-104781C26EE2@pervasive.com
обсуждение исходный текст
Ответ на Re: Postgresql string parsing  (Tony Caduto <tony_caduto@amsoftwaredesign.com>)
Список pgsql-general
On Mar 29, 2006, at 12:19 PM, Tony Caduto wrote:
> ycrux@club-internet.fr wrote:
>> Hi Folks,
>> I'm looking for the fatest way to parse string in a postgresql
>> function and insert each parsed chunk in a table. Something like
>> that:
>>
>>
> You might be able to use the |string_to_array function which |
> splits a string into array elements using the provided delimiter
> which could be a EOL marker.
> Then use a loop to iterate through the  array  and  insert  into
> your  table.

Using a language other than plpgsql might also be a good idea. Perl,
for example.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: Getting more information about errorcodes such as when these error1 happen
Следующее
От: Jim Nasby
Дата:
Сообщение: Re: Create an index with a sort condition