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

Is this the casting error? - response (2) by shankerao

$
0
0

hi dnoeth,
 
I have data like 123456*12 ..I need data before * as one column and after * as other column ..but when i run below statement its throwing me an error 2662..Please help.
 
cast(substring(ID from 1 for instr(ID,'*',1)-1) as int) as cust_num


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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