我有三个名为的表
**Student Table**
-------------
id name
-------------
1 ali
2 ahmed
3 john
4 king
**Course Table**
-------------
id name
-------------
1 physic
2 maths
3 computer
4 chemistry
**Bridge**
-------------
sid cid
-------------
1 1
1 2
1 3
1 4
2 1
2 2
3 3
3 4
4 1
4 2
Run Code Online (Sandbox Code Playgroud)
现在用他研究过的课程名称来显示学生姓名,
**Result**
---------------------------
Student Course
---------------------------
ahmed physic
ahmed maths
ahmed computer
ahmed chemistry
ali physic
ali maths
john computer
john chemistry
king physic
king maths …Run Code Online (Sandbox Code Playgroud) 如何从插入选定行table_source到table_targetMySQL中,其中使用SQL:
id琐碎INSERT INTO table_target SELECT * FROM table_source无法在主键重复的条目.