Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    272

    Unanswered: Function which returns number of characters in a string.

    Does anyone know of any function in db2 which returns number of characters in a string.

    For example number of e's in cheese

  2. #2
    Join Date
    Jan 2003
    Posts
    4,292
    Provided Answers: 5
    length('Cheese')-length(replace('Cheese','e',''))

    Andy

  3. #3
    Join Date
    Jun 2009
    Posts
    272
    Thanks Andy.

Posting Permissions

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