Is there a difference using join andselect from multi-tables?

前端 未结 5 1434
借酒劲吻你
借酒劲吻你 2020-12-07 04:22

First option:

SELECT Table1.* ,Table2.Price AS Price
FROM
  Table1,Table2
WHERE
  Table1.ID = Table2.ID 

Second op

5条回答
  •  离开以前
    2020-12-07 05:04

    Tons of duplicate questions

    Also, it should be covered in any decent SQL book (I've got my understanding of the question from the O'Reilly pocket reference). Also, I still wonder where people get the old syntax examples, maybe I just learned SQL from the good sources. Also, while people repeat that both variants produce the same query with the same performance, I still prefer to doubt that when the talk is not about some DBMS specifically stating that in its documentation and especially when the talk is about DBMS in general.

提交回复
热议问题