晕了,输入法很难用啊.烦~~
select a.编号,a.用户名,a.密码 from userinfo a,yaoceinfo b where a.编号=b.编号
and b.编号 in (select 编号 from a,yaoceinfo where 时间>='TIME1' AND 时间<='TIME2' )
最后查询的语句应该是:
select a.编号,a.用户名,a.密码 from userinfo a,yaoceinfo b where a.编号=b.编号
暗道 and b.编号 in (select 编号 from a,yaoceinfo where 时间>='TIME1' AND 时间<='TIME2' )