Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

if a string is there like s1,s2,s3,s4.How to find count of
commas in this.

Answer Posted / prashant

14:41:23 SQL> SELECT regexp_count ('s1,s2,s3,s4', ',')
14:41:24 2 FROM DUAL;

REGEXP_COUNT('S1,S2,S3,S4',',')
-------------------------------
3

Elapsed: 00:00:00.00
14:41:26 SQL>

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does truncate mean in sql?

1036


what are the different type of sql's statements ? : Sql dba

929


How do you update f as m and m as f from the below table testtable?

1865


How will you distinguish a global variable with a local variable in pl/sql?

1158


what are the differences between binary and varbinary? : Sql dba

1049


how would concatenate strings in mysql? : Sql dba

1100


list out some tools through which we can draw e-r diagrams for mysql. : Sql dba

974


Do we need to rebuild index after truncate?

1040


What is database sql?

1059


Can delete statement be rollbacked?

992


what are rollup and cube in t-sql? : Transact sql

1106


How can we make an if statement within a select statement?

1021


what are wild cards used in database for pattern matching ? : Sql dba

1150


Should I use mbr or gpt?

1033


What is the trigger in sql?

966