Results 1 to 3 of 3

Thread: Counting a character values

  1. #1
    Ali Alhussein Guest

    Counting a character values


    hi, how can I count the number of letters in a string and get the result in a variable,

    here what Ithought,
    declare @counter int
    select @counter = (.... what is the code that count a string and retrun numeric value)


    thanks for your help
    Ali

  2. #2
    Jane appleby Guest

    Counting a character values (reply)

    The built in function datalength

    select @counter = Datalength(@string)


    ------------
    Ali Alhussein at 9/15/99 12:35:57 PM


    hi, how can I count the number of letters in a string and get the result in a variable,

    here what Ithought,
    declare @counter int
    select @counter = (.... what is the code that count a string and retrun numeric value)


    thanks for your help
    Ali

  3. #3
    MAK/AnanthaKumar Muthusamy Guest

    Counting a character values (reply)

    Hi.

    select @x =( select len("anand&#34) or variable

    MAK
    ------------
    Ali Alhussein at 9/15/99 12:35:57 PM


    hi, how can I count the number of letters in a string and get the result in a variable,

    here what Ithought,
    declare @counter int
    select @counter = (.... what is the code that count a string and retrun numeric value)


    thanks for your help
    Ali

Posting Permissions

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