Do you use the OUTER keyword when writing left/right JOINs in SQL?

后端 未结 8 2254
臣服心动
臣服心动 2021-02-13 22:25

I often see people who write SQL like this:

SELECT * from TableA LEFT OUTER JOIN TableB ON (ID1=I2)

I myself write simply:

SELE         


        
8条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-13 22:56

    YES

    It just make things clearer in my opinion - the clearer and more obvious you state your intent, the better (especially for someone else trying to read and understand your code later on).

    But that's just my opinion - it's not technically needed, so you can use it - or leave it.

提交回复
热议问题