select * from ... where a='' or b like '% %'; ResutlSetrs=....booleanhasNext=rs.next();如果hasNext是false则结果集为空