NutzCN Logo
问答 Nutz dao的is not null怎么写Cnd ?
发布于 2725天前 作者 qq_16dd5808 4455 次浏览 复制 上一个帖子 下一个帖子
标签:

怎么写都不行呢?

Date createTime = dbTools.getDao().execute(Sqls.fetchTimestamp("SELECT create_time FROM biz_terminal_info $condition").setCondition(Cnd.where("terminal_no", "=", "homer 1507000014").andNot("createTime","=",null))).getObject(Date.class);
        System.out.println(createTime);
Date createTime = dbTools.getDao().execute(Sqls.fetchTimestamp("SELECT create_time FROM biz_terminal_info $condition").setCondition(Cnd.where("terminal_no", "=", "homer 1507000014").and("createTime", "is not", null))).getObject(Date.class);
5 回复
.andNot("createTime","is",null)

哦,了解了。多谢

可以这样吗

and("createTime","is not ",null)

@crskyp 记得是不行的,你试试就知道咯

来自美丽的 NutzCN

Cnd.where(Exps.isNull("createTime").not())
添加回复
请先登陆
回到顶部