Displaying 1 result from an estimated 1 matches for "an_contact".
2010 Jan 27
2
RMySQL - Bulk loading data and creating FK links
I have a table (contact) with several fields and it's PK is an auto
increment field. I'm bulk loading data to this table from files which if
successful will be about 3.5million rows (approx 16000 rows per file).
However, I have a linking table (an_contact) to resolve a m:m
relationship between the an and contact tables. How can I retrieve the
PK's for the data bulk loaded into contact so I can insert the relevant
data into an_contact.
I currently load the data into contact using:
dbWriteTable(con, "contact", dat, append=TRUE, row.n...