How about this:
select cast(cast('20041101' as date format 'yyyymmdd') as date format 'yyyy-mm-dd');
*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.
'20041101'
----------
2004-11-01
I think, SL23 is asking something like BLOB datatype in Oracle. In Oracle, you can store Excel or Text file (or any type file) in a column that is defined as BLOB.
I am also curious to know whether Teradata has a datatype similar to BLOB in Oracle. Thanks.
Case 1:
select substring ('12345678', 3, 3);
gives 345 as result, which is fine.
Case 2:
select substring (12345678, 3, 3);
gives 12 as result, and
select substring(12345678 from 7 for 2);
gives 45 as result.
I realize I used number in case 2. Can you explain why I am getting '12' and '45' for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.