注册 登录
编程论坛 SQL Server论坛

sql server2008 left outer join 大神们检查下

cai410579517 发布于 2013-11-23 10:47, 647 次点击
只有本站会员才能查看附件,请 登录
只有本站会员才能查看附件,请 登录
为什么取不不值
    select
        this_.uid as 用户id,
        this_.rid as 角色id_,
        this_.uname as 用户名_,
        this_.password as 密码,
        this_.bith as 生日,
        this_.pic as 图,
        role2_.rid as 角色id2_,
        role2_.rname as 角色名_
    from
        sj303.dbo.users this_
    left outer join
        sj303.dbo.role role2_
            on this_.rid=role2_.rid
    where
        this_.uname like  '三%'
        and this_.bith like '2013-11-21%'
5 回复
#2
cai4105795172013-11-23 10:47
为什么查不到值
#3
tlliqi2013-11-24 08:13
没看出什么错
#4
cai4105795172013-11-24 11:30
但他就是没有值  不知道那里写错了
#5
崔辉辉2013-11-24 21:10
应该是“数据的完整性”那方面的问题
#6
cai4105795172013-11-24 22:43
找到原因了   谢谢了 刚开始我也觉得是表的问题
1