标签: mysql
如何查询每年级别的mysql课程没有任何关系?
表1
id course 1 DBA 2 BSCS
表2
id level 1 first year 2 second year 3 third year 4 fourth year
见下图预期输出
enter image description here
答案 0 :(得分:1)
您需要cross join
cross join
select t1.course, t2.level from table_1 t1 cross join table_2 t2