Archives of the TeradataForum
Message Posted: Fri, 28 Jan 2011 @ 19:48:52 GMT
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 */
|