Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Length function counts only trailing spaces in a string - forum topic by bikky6

$
0
0

SEL LENGTH('   VENKAT   ')
I have 3 spaces before and after the name,it returns 9 as it is 12 character string.
When used with CHAR_LENGTH('   VENKAT   ') it returns 12
 
As the length measures the strings in the form of BYTES and the CHAR_LENGTH measures the string inthe form of characters.
 
Why the length is not couting the right side spaces?
 
Regards
KVB

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>