http://www.cnblogs.com/glory-jzx/archive/2012/07/19/2599215.html

http://sunxiaqw.blog.163.com/blog/static/990654382013430105130443/

 

这篇文章写的很清楚了,请参考,多谢原作者。

 

select loan_user_id from sp_invest_project p where exists(
                         select 1 from temp_stock_enterprise e where e.user_id = p.loan_user_id 
                         ) ;
                         
select loan_user_id from sp_invest_project p where  loan_user_id in (
                         select user_id  from temp_stock_enterprise
                         ) ;

上述两种写法应该是一致的。

相关文章:

  • 2021-07-21
  • 2021-12-27
  • 2021-06-12
  • 2022-12-23
  • 2022-02-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
相关资源
相似解决方案