当前位置: 首页 > 工具软件 > QueryBuilder > 使用案例 >

android ormlite queryBuilder.where() 多条件

魏刚豪
2023-12-01
QueryBuilder<VideoTagInfo, Integer> queryBuilder = videoTagInfoIntegerDao.queryBuilder();
try {
queryBuilder.where().eq("value",roomId).and().eq("myFocus",true);
VideoTagInfo videoTagInfo = queryBuilder.queryForFirst();
long count = queryBuilder.countOf();
Log.i("ss","___________________________________count:"+count+"_____videoTagInfo:"+videoTagInfo);
if(videoTagInfo != null){
return true;
}

} catch (SQLException e) {
Log.i("ss","____________________________________________e:"+e);
e.printStackTrace();

}
分类:  android solve


本文转自wanqi博客园博客,原文链接:http://www.cnblogs.com/wanqieddy/p/4708090.html,如需转载请自行联系原作者


 类似资料: