SQL INNER JOIN question

后端 未结 3 2082
离开以前
离开以前 2020-12-20 23:28

I\'m creating a query that will display information for a record which is derived from 8 tables. The developer who originally wrote the query used a combination of \'where t

3条回答
  •  猫巷女王i
    2020-12-20 23:51

    I beleive that there is no performance difference between both :

    ANSI Style
    SELECT * FROM Table1 a JOIN TABLE2 b on a.id = b.id

    Old Style
    SELECT * FROM Table1 a , TABLE2 b
    WHERE a.id = b.id

    The ANSI style is newer and more readable and pretty, i do prefer the old style especially when it comes to join more than 4/5 Tables... maybe because im an Oracle Dev as it was said before o_O

提交回复
热议问题