|
|
Archives of the TeradataForum
Message Posted: Wed, 16 Mar 2005 @ 12:32:41 GMT
Subj: | | Re: Migrating Oracle date fields in Teradata |
|
From: | | Vidyasagar_Nagarajan |
sel
cast('mar 01, 2003 01:01:01' as timestamp(0) format 'mmmbdd,by4bhh:mi:ss')
,cast('mar/01/2003 01:01:01' as timestamp(0) format 'mmmBddBy4bhh:mi:ss')
,cast('01/mar/2003 01:01:01' as timestamp(0) format 'ddBmmmBy4bhh:mi:ss')
,cast('01-mar-2003 01:01:01' as timestamp(0) format 'ddBmmmBy4bhh:mi:ss')
,cast('01/12/2003 01:01:01' as timestamp(0) format 'ddBmmBy4bhh:mi:ss');
sel
cast('mar 01, 2003 01:01:01' as timestamp(0) format 'mmmbdd,by4bhh:mi:ss')
(timestamp(0))
,cast('mar/01/2003 01:01:01' as timestamp(0) format 'mmmBddBy4bhh:mi:ss')
(timestamp(0))
,cast('01/mar/2003 01:01:01' as timestamp(0) format 'ddBmmmBy4bhh:mi:ss')
(timestamp(0))
,cast('01-mar-2003 01:01:01' as timestamp(0) format 'ddBmmmBy4bhh:mi:ss')
(timestamp(0))
,cast('01/12/2003 01:01:01' as timestamp(0) format 'ddBmmBy4bhh:mi:ss')
(timestamp(0));
run above qry in BTEQ to see the O/P.
Please refer SQL PDF.
Regards,
Vidya Sagar.N
| |