Qry to find no. of occurance of a character in a string
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Qry to find no. of occurance of a character in a string

  1. #1
    Join Date
    Oct 2002
    Posts
    12

    Question Qry to find no. of occurance of a character in a string

    Is there any way to find the number of occurance of a given letter in a string through SQL query? If so, plz help.

    -Raja.M

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    length(my_string)-Nvl(length(replace(my_string,'X')),0)
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width