Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

DB2 :: RE: Comparing Decimal and CHAR columns

$
0
0
Author: Auryn
Posted: Thu Oct 20, 2016 4:11 pm (GMT 5.5)

try the other direction, try to convert numeric values in alphanumerics:
Use CAST(col1 AS VARCHAR(17)) (i.e. 123 would be converted in '123') or DIGITS(col1) (i.e. 123 would be converted in '0000000123' or something similar)...
_________________
... using DB2 v11 for z/OS ...


Viewing all articles
Browse latest Browse all 8500

Trending Articles