专家,
我有使用SQL Loader将多个csv文件加载到DB的脚本。 每个csv文件来自不同的系统,但目标表对所有人来说都是相同的。
我最初创建的所有列都是VARCHAR,因此没有问题,但问题始于Date字段,其中数据格式因不同系统而异,并且它们将被加载到同一列。
VerificationDate '20150501090200
TransDate '20150902'
CompletedDate '01/01/2018'
ReceivedDate '2015-11-17 12:02:39' or '2018-01-01 12:30:59.213000000'
1) How can i format the three types into any of the one format?
2) Does the column have to be DATE to achieve that?