Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 28 Jan 2011 @ 19:48:52 GMT


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 


Subj:   Re: Date format in ML
 
From:   Prescott, Kyle

In Mload the layout definition is always character. In the insert DML statement, you need to format your input host variable to represent the input format:

     .field date_time * varchar(26);

     Insert into 
       Values (...
          ,:date_Time (format'mmm-dd-yyyybhh:mi:ss'); /* JAN-12-2011 13:55:22 */

Or...your other format desired

     Insert into 
       Values (...
          ,:date_Time (format'yyyy/mm/ddbhh:mi:ss'); /* 2011/01/12 13:55:22 */


     
  <Prev Next>   <<First <Prev
Next>
Last>>
 
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023