BULK INSERT into table with Foreign Key
问题 I have a table Customer which has the details of the customer. The following are the fields CustId (PrimaryKey), Name, Date of Birth I have another table, the Asset information. The following fields are there - AssetId (PrimaryKey), AssetValue, CustId (Foreign Key Reference) My CSV file is as such Name, Date of Birth, AssetValue and I have to insert it into the two tables. I split the CSV file, one with the Name of Date of Birth and the other with just the AssetValue. Here is what I did - /