Select from Table1, Table2

后端 未结 3 769
盖世英雄少女心
盖世英雄少女心 2021-01-11 16:43

I found the following query and appreciate it if someone can help explain to me what this means.

select * from table1, table2
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-11 17:07

    Table1 (Col1, Col2) with 4 Records

    Table2 (Col11, Col22, Col33) with 3 Records

    when you use the query given below, It will produce NxM number of rows (Cartesian Join)

    select * from table1, table2 
    

    The result and column sequence from both tables would be given below with 4 x 3 = 12 Records. Col1,Col2, Col11, Col22, Col33

提交回复
热议问题