I have two tables named "People" and "Email". Because people can have more than one email, I created a one-to-many relationship between these two tables with a PK/FK named PeopleID.
Now someone has given me a list of 1000 names and email addresses they want added to the database. The list is in the following format:
FirstName1, LastName1, Email1
FirstName2, LastName2, Email2
FirstName3, LastName3, Email3
etc...
How can I add the names to the "People" table and the emails to the "Email" table in one step; given that the PeopleID is generated only when a new record is inserted?
Any help is appreciated.
Eric
Now someone has given me a list of 1000 names and email addresses they want added to the database. The list is in the following format:
FirstName1, LastName1, Email1
FirstName2, LastName2, Email2
FirstName3, LastName3, Email3
etc...
How can I add the names to the "People" table and the emails to the "Email" table in one step; given that the PeopleID is generated only when a new record is inserted?
Any help is appreciated.
Eric