我在获取sqlldr将DAT文件数据文件导入到我的表中时遇到了问题,特别是带有时间戳的字段。
2018-11-02T20:54:38.000000 + 0000
我已经在控制文件中尝试了各种组合方式,并且正在绕圈转。有人知道上面的时间戳格式应在我的控制文件中使用什么吗?
供参考,这是我最近尝试过的:
load data
infile 'feed.dat'
into table cust_acct
fields terminated by "|"
( ...
updateddatetime TIMESTAMP "YYYY-MM-DD-HH24.MI.SS",
...)
不完全相同,但是请检查此链接-Oracle sqlldr timestamp format headache
you can try this format:
event_timestamp TIMESTAMP "dd-MON-yy hh.mi.ss.ff6 PM"
You can browse all available formats in the SQL reference documentation
https://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements004.htm#i34510