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

SUBSTR without explicitly coding the length parm - response (1) by ulrich

$
0
0

I can't reproduce the issue.


select top 100
       substring(myvar from 4),
       substr(myvar,4),
       substr(myvar,14,CHARACTER_LENGTH(myvar))
from mytbl;

but as you can see above you don't need to specify the thrid parameter for substr and substring - check the different syntax in the docu.
So I guess this is what you are looking for?


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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