View previous topic :: View next topic |
Author |
Message |
vani Beginner
Joined: 28 May 2003 Posts: 51 Topics: 30
|
Posted: Mon Nov 24, 2003 5:15 am Post subject: Equivalent of to_char in DB2 |
|
|
I need to know if it is possible to change a numeric result within a select statement into a character format.
INSERT INTO SESSION.ATABTXT (asatzart, asaih, atext)
SELECT '0005',
MWSTID,
MWSTBEZ
FROM VMWST;
SqlError(SQLCODE,540);
/*???ASAIH IS CHAR(4) AND MWSTID IS SMALL INT*/
Can we change the format of MWSTID from NUMERIC to CHARACTER within the select statement ?
(I understand that it is possible in oracle by using tochar function) |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
nivedita Beginner
Joined: 04 Nov 2003 Posts: 22 Topics: 15
|
Posted: Tue Nov 25, 2003 11:39 pm Post subject: |
|
|
Thanks It worked!!!!! |
|
Back to top |
|
 |
|
|