Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Caculate how many bytes of string - response (6) by ricky_ru

$
0
0
Thanks Harpreet. And I got another question related. If the collation is ASCII and I want to compare two characters which are not in the scope of ASCII, how the comparation does? The character will be converted to unicode(assuming the character set is utf8) and then do the comparation? right? For example(the collation is ascii and character set is UTF8): SELECT (CASE WHEN (''<= '') THEN 1 ELSE 0 END) AS "newField" 0 SELECT (CASE WHEN (''<= 'A') THEN 1 ELSE 0 END) AS "newField" 0 SELECT (CASE WHEN (''<= 'A') THEN 1 ELSE 0 END) AS "newField" 1 How to explain the results from the above 3 commands?   Thanks RR  

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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