SQL join two tables without keys/relations

后端 未结 2 466
死守一世寂寞
死守一世寂寞 2020-12-24 02:29

I have two tables, one of them has weeks of year, and the second table has categories. I need to create a table that contains each week and each category, but there\'s no fi

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-24 02:47

    SELECT * FROM Table1 CROSS JOIN Table2
    

    This will get you every combination of all columns from Table1 and Table2.

提交回复
热议问题