|
|
Archives of the TeradataForum
Message Posted: Fri, 30 Jun 2006 @ 15:05:19 GMT
Subj: | | Re: CAST into varchar 2 versions |
|
From: | | Dieter Noeth |
Anomy.Anom wrote:
| Should this query not have returned 4 columns? | |
:-)
sel cast(1234567 as char(11)) || ';',
(1234567 (char(11))) || ';',
(1234567 (char(20))) || ';',
(1234567 (char(5))) || ';';
*** Query completed. One row found. 4 columns returned.
*** Total elapsed time was 1 second.
(1234567||';') (1234567||';') (1234567||';') (1234567||';')
-------------- -------------- --------------------- --------------
1234567 ; 1234567; 1234567 ; 1;
Added the last column and forgot to cut&paste again...
Dieter
| |