`

exists

 
阅读更多
select count(*) from NetTeacherStudent as nts where exists(select id from NetTeacher as nt where nt.user.username='"+username+"' and nts.teacher.id=nt.id)

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics