Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

Teradata R - create table based on a data frame using JDBC - response (2) by hock

$
0
0
Thank you Ulrich!  We will go with the sqlSave RODBC route for now.  The fast=true option does speed up the insertion due to parameterized inserts but does have some datatype issue such as Date.  But my colleage figured out a way to do so by using varTypes:     Test <- sqlQuery (channel = channel, query = "select * from sys_calendar.calendar where calendar_date<= (date - 10)")   sqlDrop(channel = channel, "DWSP_ETL_STG.testme")   sqlSave(channel = channel, dat = Test[1:10000,], tablename = "DWSP_ETL_STG.testme", append = F, rownames = F, colnames = FALSE, verbose = F, safer = TRUE, addPK = F, fast = T, test = FALSE, nastring = NULL, varTypes = unlist(lapply(Test, class)))

Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>