让我们假设,我只为表Student(RollNo,Name,class,Address,EmergencyContactNo)、Course(CourseNo,CourseName)和Student_Course(RollNo,CourseNo)创建了模式,我需要将其加载到相应的表中。我在将数据加载到学生表和课程表中时没有任何问题,因为表的架构和csv头是相同的。但是在学生课程表中,模式为RollNo和CourseNo,学生课程的StudentCourse.csv文件的标题为StudentName和CourseName。在这种情况下,如何将数据加载到数据库中?有人能解决这个问题吗
Schema for StudentCourse Table:
Create table StudentCourse
(
id int not null IDENTITY(1,1),
RollNo varchar(50) ,
CourseNo varchar(40) ,
primary key(id)
);
StudentCourse.csv
StudentName,CourseName
Alwin,CSE
Brian,CSE
Cynthia,CSE
David,CSE
elizabeth,ECE
Frank,EEE
Ganga,ECE
Hitesh,EEE
Indra,ECE
Karthik,ECE
目前没有回答
相关问题 更多 >
编程相关推荐