how to count string occurrence in column - Mailing list pgsql-general

From Ben-Nes Michael
Subject how to count string occurrence in column
Date
Msg-id 006b01c24dad$8e34c860$aa0f5ac2@canaan.co.il
Whole thread Raw
Responses Re: how to count string occurrence in column  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
List pgsql-general
Hi All


How can i count how many time a string 'hello' appear in a column.

for example.

select *, count_num_of_string(column, 'hello') from table;

Cheer


pgsql-general by date:

Previous
From: "Mario Weilguni"
Date:
Subject: Re: union and limit
Next
From: Thirumoorthy Bhuvneswari
Date:
Subject: Cast Type