Database 版 (精华区)

发信人: Deno_Siman@bbs.ustc.edu.cn (ES), 信区: cndatabase
标  题: SQL Server求助!
发信站: 中国科大BBS站 (Tue Aug 26 20:08:38 1997)
转信站: Lilac!ustcnews!ustcnews!ustcbbs

有如下三个表:
    TA:              TB:                   TC:
    c1               c1     c2             c2     name
    ----             ----   ----           ----   ----
    1                1      a              a      Aaa
    2                2      (null)
    3

我想作这样的选择:

    select  TA.c1, TC.name
    from    TA, TB, TC
    where   TA.c1 *= TB.c1 and TB.c2 *= TC.c2

希望得出如下结果:

    c1    name
    ----  ----
    1     Aaa
    2     (null)
    3     (null)

但SQL Server不通过上述语句, 说是错误的外部连接.
请教诸位该怎么办?


--
※ 来源: 中国科大BBS站 [bbs.ustc.edu.cn]
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:1.935毫秒