View previous topic :: View next topic |
Author |
Message |
ranjit5311 Beginner
Joined: 27 Nov 2005 Posts: 27 Topics: 14
|
Posted: Tue Aug 21, 2007 6:40 am Post subject: count number of characters |
|
|
Hi,
I required to check the count of chacters present in a column's value of a table. The column is defined as char(150). So I am not able to use LENGTH funtion.
E.g:-
Column Value
-----------------
abc
ab
defg
Result:-
3
2
4
Could any one suggest how the above objective can be achived.
Thanks,
Ranjit _________________ One should move lightly through the life, carrying no excess baggage. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Tue Aug 21, 2007 6:43 am Post subject: |
|
|
ranjit5311,
Try this
Code: |
SELECT LENGTH(RTRIM(COL1))
FROM Table
;
|
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
|
|