数据库sql中 ……where e.client-id = a.client-id( + )…… 详解.

问题描述:

数据库sql中 ……where e.client_id = a.client_id( + )…… 详解.
1个回答 分类:综合 2014-11-06

问题解答:

我来补答
这是个左连接,举个例子,比如e表,有两行数据 001, 'test1', '002' 'test2'
而a表有一行数据client_id为001
select e.client_id, e.client_name, a.value from a, e where e.client_id = a.client_id(+)
会显示出001, test1, 3(001对应的a表的value值)
002, test2, null
 
 
展开全文阅读
剩余:2000
也许感兴趣的知识