如何在select中判断collection为空?是判断collection对象属性为空,在代码里我想通过users.id来获取collection中的id属性,但是失败了。求大神解答如何取得并判断collection中的属性值为空?
select count(*) from table where 条件