Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005
    Posts
    6

    Unanswered: count characters

    I have a table with varchar values

    What's the easiest way to find out how many comma's I have in the value?

    Thanks


    ----------------------
    TABLE 1:

    col1
    test,one,two,three
    a,b,c,d,e,f,g
    a
    ----------------------

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Hi

    Code:
    NoOfCommas = Len(MyCol) - Len(Replace(MyCol, ',',''))
    HTH
    Testimonial:
    pootle flump
    ur codings are working excelent.

  3. #3
    Join Date
    Jan 2005
    Posts
    6
    looks great!
    thanks

Posting Permissions

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