您的位置:程序门 -> db2 -> 基础类



sql在线求助


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


sql在线求助
发表于:2008-01-14 14:43:21 楼主
select   aa.id,b,c   from   (select   id,b   from   temp1)   aa   left   join   (select   id,d   from   temp2)   bb   on   aa.id=bb.id   where   b <> d   这个句子有问题么?测试是where   b <> d有问题,结果是空,明明有符合条件的呀
发表于:2008-01-14 14:47:021楼 得分:0
修改:select       aa.id,b,c       from       (select       id,b       from       temp1)       aa       left       join       (select       id,c       from       temp2)       bb       on       aa.id=bb.id       where       b   <>   c
c可能是null


快速检索

最新资讯
热门点击