ROracle - dbWriteTable, date columns
问题 How can I write data frame with date columns to Oracle database using dbWriteTable ? I am trying: df <-read.table(header = TRUE, sep = ',', stringsAsFactors = FALSE, text=" id,product,origination_date,repayment_date 1,A,2012-01-01,2012-02-01 2,A,2012-01-01,2012-04-01 3,A,2012-01-01,NA 4,A,2012-02-01,2012-03-01 ") df$origination_date <- as.Date(df$origination_date, format = '%Y-%d-%m') df$repayment_date <- as.Date(df$repayment_date, format = '%Y-%d-%m') names(df) <- toupper(names(df))