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 时间戳格式头疼
基础教程推荐
- 无法解决整理冲突 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
