Write a query to count a particular character in a string. e.g Return the number of times 'N' appears in string 'NITININ'. The result shoudl be 3.
Solution:
select length('NITININ') - length(replace('NITININ','N','')) from dual
Hello World java classless
-
$ cat HW.java && javac HW.java && java HW void main() {
System.out.println("Hello World"); } Hello World If you know, you know
2 weeks ago
No comments:
Post a Comment