Oracle sqlldr timestamp format headache(Oracle sqlldr 时间戳格式头疼)
问题描述
我正在努力让 sqlldr
将 csv 数据文件导入到我的表中,特别是使用时间戳字段.
I'm struggling to get sqlldr
to import a csv data file into my table, specifically with the field that is a timestamp.
我的 csv 文件中的数据是这种格式:
The data in my csv file is in this format:
16-NOV-09 01.57.48.001000 PM
我已经在我的控制文件中尝试了各种组合方式,并且正在转圈.我在网上找不到任何东西——甚至没有详细说明所有日期/时间戳格式字符串是什么的 Oracle 参考页面.
I've tried all manner of combinations in my control file and am going around in circles. I can't find anything online - not even the Oracle reference page that details what all the date/timestamp format strings are.
有谁知道这个参考页在哪里,或者我应该在我的控制文件中为这个时间戳格式使用什么格式字符串.
Does anyone know where this reference page is, or what format string I should be using in my control file for this timestamp format.
作为参考,这是我最近尝试过的:
For reference, this is what I've most recently tried:
load data
infile 'kev.csv'
into table page_hits
fields terminated by "~"
( ...
event_timestamp TIMESTAMP "dd-mmm-yy hh24.mi.ss",
...)
推荐答案
你可以试试这个格式:
event_timestamp TIMESTAMP "dd-MON-yy hh.mi.ss.ff6 PM"
您可以在 SQL 参考文档.
这篇关于Oracle sqlldr 时间戳格式头疼的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Oracle sqlldr 时间戳格式头疼


- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- 导入具有可变标题的 Excel 文件 2021-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- SQL 临时表问题 2022-01-01
- 在SQL中,如何为每个组选择前2行 2021-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- 更改自动增量起始编号? 2021-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01