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

SUBSTR without explicitly coding the length parm - response (2) by ronirwin

$
0
0

Thanks so much for responding, I appreciate it.  It's tough to duplicate because the sum total of the column lengths have to exceed the max size that TD allows before you will get the error.  I was using the SUBSTR function to reduce the total size enough to slip under the limit.
In any case, I do realize that there are multiple variations of the substr, and as you correctly pointed out, the length isn't even mandatory.  I just didn't understand that if you explicity code the length parameter to reduce the size of the column it would accept just fine.  However, if you code the length such that it uses the CHARACTER_LENGTH of the same column it doesn't seem to understand (even though the length of the column that the CHARACTER_LENGTH translates is the exact same value as what was "hard coded").  


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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