if a string is there like s1,s2,s3,s4.How to find count of
commas in this.
Answer Posted / ajit
select 's1,s2,s3,s4' str,
length('s1,s2,s3,s4') - length(replace('s1,s2,s3,s4', ',')) str2
from dual;
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What are different types of indexes?
What is difference between group by and partition by?
How do you break a loop in pl sql?
Does mysql_real_escape_string prevent sql injection?
What is native sql query?
How do I run a sql trace?
Can we use ddl statements in stored procedure?
Can we delete column in sql?
Is it possible to link two groups inside a cross products after the cross products group has been created?
Can we use pl sql in mysql?
what tools available for managing mysql server? : Sql dba
Is sql similar to python?
what are tables and fields? : Sql dba
How does join work in sql?
How do you use collections in procedure to return the resultset?