【问题标题】:Checkbox inside div are checke or not?div里面的复选框是否被选中?
【发布时间】:2014-03-26 14:57:00
【问题描述】:

我有两列,一列用于用户(包括学生和教师),另一列用于教师订阅。我想选择当前用户未关注的用户(教师)(例如 user1)。

我试过这个..

select users.uid,acctype,uname from users where uid!=1 && acctype='Teacher'&& users.uid not in(select tid from teacher_subscription where uid!=1&&tid!=users.uid)

但没有得到想要的结果

我有两列,一列用于用户(包括学生和教师),另一列用于教师订阅。我想选择当前用户未关注的用户(教师)(例如 user1)。

我试过这个..

select users.uid,acctype,uname from users where uid!=1 && acctype='Teacher'&& users.uid not in(select tid from teacher_subscription where uid!=1&&tid!=users.uid)

但没有得到想要的结果

【问题讨论】:

    标签: notin


    【解决方案1】:

    试试这个?

    select users.uid,acctype,uname from users where acctype='Teacher'&& users.uid not in     (select tid from teacher_subscription where uid=1)
    

    【讨论】:

      猜你喜欢
      • 2012-06-08
      • 2021-07-16
      • 1970-01-01
      • 1970-01-01
      • 2015-12-28
      • 2019-07-04
      • 1970-01-01
      相关资源
      最近更新 更多