You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

AWS Redshift左外连接返回结果异常咨询

AWS Redshift左外连接返回结果异常咨询

大家好,我在AWS Redshift里尝试执行了一段带左外连接的SQL查询,代码如下:

with test_1 as (
    select 1 as "a" union select 2 as "a"
),
test_2 as (
    select 1 as "b" union select 3 as "b"
)

select * from test_1 as t1 left outer join test_2 as t2 on t1.a = t2.b; 

执行完成后得到的结果如下:

ab
11
2NULL

我原本以为左外连接会有不一样的表现,但实际它的运行效果和普通的左连接完全一致,想请教各位这是不是正常情况?有没有哪里是我理解错了的?

备注:内容来源于stack exchange,提问作者Yudovin Artsiom

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.16 11:13:03