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 are the advantages of normalization?

550


how to drop an existing index in mysql? : Sql dba

533


How many primary keys can a table have?

531


What is embedded sql with example?

542


How to display the current date in sql?

595






What is vector point function?

562


What is the maximum number of triggers, you can apply on a single table?

539


When is the explicit cursor used ?

588


what is self join and what is the requirement of self join? : Sql dba

681


Write the alter statement to enable all the triggers on the t.students table.

665


What are database links used for?

591


What is a variable in sql?

511


What is a primary key sql?

559


What is the difference between jpql and sql?

551


What does the hierarchical profiler does?

566