Which table exactly is the “left” table and “right” table in a JOIN statement (SQL)?

前端 未结 5 2143
悲哀的现实
悲哀的现实 2020-12-24 10:17

What makes a given table the left table?

Is it that the table is indicated in the \"From\" part of the query?

Or, is it the left table because it is on the l

5条回答
  •  一向
    一向 (楼主)
    2020-12-24 11:01

    The right table is always the table that you are joining on. So yes, both of your statements are equivalent.

    JOIN [Table] ON ...
    

    [Table] is always the right table.

提交回复
热议问题