我得到一个看起来像这样的json,它在发布请求正文中很大:
{
"col": ["Employee Code", "Email ID", "Gender", "Country", "City", "BU Level-1 (top organisation)", "BU Level-2 (Division)", "BU Level-3 (Area)", "Function", "Sub Function", "Sub Sub Function", "Designation/Title", "Grade", "Level", "Identified talent", "Critical Position holder", "Special Category-1", "Date of Joining", "Performance Rating for this year", "Manager ID"],
"row": [
[1, "EGP-emp-1@test1000.com", "Female", "Egypt", "Cairo", "Group", "EMEA", "NEA", "Cairo-Country Manager Office", "Country Manager Office", "Country Manager Office", "Country Manager", 6, "6A", "Consistent Star", "Medium", "NA", "01-Aug-12", "Achieves Results", "EGP-emp-0@test1000.com"],
[2, "EGP-emp-2@test1000.com", "Female", "Egypt", "Cairo", "Group", "EMEA", "NEA", "Cairo-Country Manager Office", "Country Manager Office", "Country Manager Office", "Country Manager", 6, "6A", "Consistent Star", "Medium", "NA", "01-Aug-12", "Achieves Results", "EGP-emp-0@test1000.com"]
]
}
col
包含csv文件的列,而row
包含employee的详细信息。将其插入到mysql的表中的最佳方法是什么,col将是表的列,而行将是行。