Monday, 12 January 2015



How to find the number of occurences in a particular string.


SELECT length('simhachalam')-LENgth(REPLACE('simhachalam', 'm', '')) FROM dual;

Output: 2


SELECT length('simhachalam')-LENgth(REPLACE('simhachalam', 'a', '')) FROM dual;

Output:3

No comments:

Post a Comment

Uploading PO Attachments from EBS to FTP Server

 create or replace PROCEDURE xx_upload_po_attachment(errbuff out varchar2, retcode out number)  IS CURSOR cur_new_attmt IS    select ponumbe...