Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Best way to remove leading zeros and trailing decimal point in DB2 v7.x?

1,282 views
Skip to first unread message

Trent

unread,
Apr 28, 2003, 6:46:38 PM4/28/03
to
Hello, everyone.

I need to remove leading zeros and a trailing decimal point.
current data: 000000012345. The leading zeroes are ranging from 1 to 9
zeros.
desired data: 12345
One field has decimal data type not null.
The second field has char data type.

I heard of STRIP function.
I want to use DML to export and filter the data to a ixf file and
import replace the current data.

Please advise.

Thanks

Trent

Blair Kenneth Adamache

unread,
Apr 28, 2003, 7:41:29 PM4/28/03
to
db2 values cast (000000012345. as int)

1
-----------
12345

1 record(s) selected.

0 new messages