where后面的 (+) 是什么作用

    技术2022-07-17  65

    首先,这个语法只能在Oracle数据库中使用。

    相当于左连接或者右连接

    select A.* ,B.* from A,B where A.id = b.id(+); select A.*,B.* from A left join B on A.id = B.id;

    上面两个语句是等效的。带(+)的表在没有数据时也展示出来null。

    Processed: 0.008, SQL: 9