![]() |
|
Archives of the TeradataForumMessage Posted: Thu, 10 Dec 2004 @ 02:33:14 GMT
FORMAT (applied to the numeric field), followed by converting to character should do what you want:
SELECT CAST(CAST(PAT_ENC_CSN_ID AS FORMAT 'Z(17)9') AS CHAR(18))
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||