Comments (2)
Oracle actually stores dates as a series of bytes not a string like MySQL or other databases. You have to wrap all dates in oracle in TO_DATE with an argument specifying what format the date string is in. in this case it would be
To_date(name_of_column,’YYYYMMDD’)
Are you using SQL*Loader or command line sqlldr?
From: leeanhu789 [mailto:[email protected]]
Sent: Sunday, August 28, 2016 9:28 PM
To: OHDSI/DatabaseConnector [email protected]
Subject: [OHDSI/DatabaseConnector] load date format (yyyymmdd, e.g. 20091001) from sample CDM format csv file into oracle database (#28)
Dear All,
I am trying to load Lee Evans provided CDM format csv files into my database. I encountered one problem. Hope someone advise.
some csv data files (e.g. CDM_death.csv, CDM_visit_occurrence.csv) have dates columns, but the format is yyyymmdd., e.g. 20080413). In oracle.sql, the format for DEATH_DATE column for DEATH table is defined as "date". The sqlldr failed to load the this numerical format "yyyymmdd" into DEATH table.
I thought there must be a reason Lee Evans used this kind of numerical format in the csv file.
Could someone advise how to load this type of format as a date format into oracle database? I am using sqlplus.
Thank you very much in advance!
Lian
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/28, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHXnuA8BbrQC0lZoc6BY_2opbFzzfBqxks5qkjW7gaJpZM4JvEsV.
from databaseconnector.
@blm14 ,
Thank you for your help. I am using SQL*Loader, not in command line. I will follow your instruction and let you know the result. Thank you again for your kind help.
Lian
from databaseconnector.
Related Issues (20)
- getTableNames does not seem to work on BigQuery HOT 8
- Create Fatal Error when load package in RStudio 2022.02.2 HOT 5
- Add option to log execution of each individual SQL statement HOT 1
- DBI refactoring HOT 26
- Erroneous dates when inserting a tibble into SQLite HOT 2
- Issue with DBMS/jdbcDriver HOT 2
- Support new Andromeda arrow backend
- WARNING: An illegal reflective access operation has occurred HOT 1
- Error message observed while uploading json to postgres from phenotype library HOT 1
- Installation of `DatabaseConnector` on 🚩🇨🇳🏹红旗中科 RedFlag Linux (🍥Debian 11) HOT 1
- Snowflake dialect support HOT 2
- Azure Synapse Analytics Dedicated dialect support
- Error in uploading vocabularies csv files in BigQuery HOT 15
- Add function for fast computation of a hash of the content of a database schema HOT 1
- 5.1.0 breaks backwards compatibility on sql server - deviates from typical drop table HOT 3
- Download drivers `method` argument
- DLL Authentication Not Working HOT 2
- Support for External Tables in getTableNames HOT 6
- Update Spark drivers to work with Databricks HOT 34
- Ability to upload and download a dataframe from a database such that the dataframe remains unchanged (DBI 'roundtrip' test) HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from databaseconnector.