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 is the maximum size of sqlite database?

548


what does the t-sql command ident_incr does? : Transact sql

603


what is the difference between where clause and having clause? : Sql dba

543


How to run sql functions in pl/sql?

542


Cite the differences between execution of triggers and stored procedures?

624






What is record in pl sql?

595


What is synonyms?

573


What is materialized view. What are different methods of refresh?

784


Which language is used in sql?

521


What are the subsets of sql?

551


How to raise user-defined exception with custom sqlerrm ?

682


Can we insert data into view?

527


Does group by remove duplicates?

553


What is equi join in sql?

613


what is oracle database ? : Sql dba

559