-
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
-
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
-
Counting a character values (reply)
Hi.
select @x =( select len("anand") 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
-
Forum Rules
|
|