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

BTEQ syntax with CAST embedded in SUBSTRING function - response (1) by dnoeth

$
0
0

I doubt it's working in SQLA, because you mix SUBSTR and SUBSTRING syntax, it's either

 SUBSTRING(CAST('' AS  CHAR(8192)) FROM 1 FOR 256  ) 

or

 SUBSTR(CAST('' AS  CHAR(8192)) , 1, 256  ) 

 
I'm not going to ask why don't you use a simple CAST('' as CHAR(${SPC_NB}) instead :-)
Dieter


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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