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

Answer Posted / debbie

select
length('s1,s2,s3,s4')-length(replace('s1,s2,s3,s4',',')) as
Count_comma from dual

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dense_rank?

540


Why we use triggers in mysql?

560


How to fix oracle error ora-00942: table or view does not exist

569


What are string functions in sql?

678


What are different types of triggers?

563






what is not null constraint? : Sql dba

551


Why plvtab is considered as the easiest way to access the pl/sql table?

620


Explain the methods used to protect source code of pl/sql.

546


How to test for null values?

606


What is difference between db2 and sql?

533


What is #table in sql?

523


What is clustered and nonclustered index in sql?

502


What is the difference between function and procedure in pl/sql?

541


What is a join query?

553


What are the two types of exceptions in pl/sql?

548