not exists 和not in

来源:互联网 发布:php代理ip访问网站 编辑:程序博客网 时间:2024/05/17 08:19
SELECT * FROM TUSER t1
where  not exists (SELECT 1 FROM (
 select mobile from APP_T_INFO where PASSDATE>to_date('2015-08-20','yyyy-mm-dd')
 )t2 where t1.mobilenum = t2.mobile ) and t1.creationtime>to_date('2015-08-20','yyyy-mm-dd')  
 ;
0 0