Function to return number of words in a string?

Поиск
Список
Период
Сортировка
От Peter Fein
Тема Function to return number of words in a string?
Дата
Msg-id 20050509112128.02077a86@layout.pfein.org
обсуждение исходный текст
Ответы Re: Function to return number of words in a string?
Re: Function to return number of words in a string?
Список pgsql-general
Hiya-

I'm looking for a function to return the number of words in a string,
split on whitespace.  I'm coming from python, so I may just write it in
that but I wanted to check first.  In python, one would write:

s="some string or other"
len(s.split())

Thanks!

--
Peter Fein                 pfein@pobox.com                 773-575-0694

Basically, if you're not a utopianist, you're a schmuck. -J. Feldman

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

Предыдущее
От: "Masse Jacques"
Дата:
Сообщение: Re: aide postgres
Следующее
От: Ben
Дата:
Сообщение: Re: Postgres and GnuPlot