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

Casting integers.... - response (2) by danimaltex

$
0
0

Hi Dieter - 
I just cant figure out how to successfully cast a VARCHAR(5) into a INT field through a select. 

SELECT BlgProdInstID, AcctID, DataSrcTypeCd, 

 

CAST(BlgPrdSvcCd as int), 

BlgPrdPckgCd,

 

BlgPrdInstallCnt, SbscrSvcCntInd, RetailAmt, PrcBeforeDiscount,

PrcAfterDiscount, CustDiscountAmt, DiscountAmt, MultiCharge,

ItemType, MSOSvcCd, 

FROM Table

 

The error i get is that there is a bad character in the format or data....


Viewing all articles
Browse latest Browse all 27759

Trending Articles



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