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

substring() on huge text column - response (4) by dnoeth

$
0
0
Hi Herman, this error is not because of the long string, there are some rows where there's a "user=", but no "reportPath=" resulting in a negative value in FOR which errors out. You need a WHERE condition or a CASE to filter: CASE WHEN SqlTextInfo like ''%user=%reportPath=%' THEN SUBSTRING... END Dieter  

Viewing all articles
Browse latest Browse all 27759

Trending Articles



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