关于几个 空值 的查询示例
最后更新:2023-10-18 19:49:42
|
状态:未完成
service.query("bs_dict", "+id:null"); // ID IS NULL
service.query("bs_dict", "+id:"); // ID IS NULL
//关于几个 空值 的查询条件
ConfigStore store = new DefaultConfigStore();
store.and("+ID", null); // ID IS NULL
store.and("+REMARK", ""); // REMARK = ''
store.and("+IDX", "".split(",")); // IDX = ''
store.and("+CODE", new ArrayList<>()); // CODE IS NULL
store.and("+VAL", new String[]{}); // VAL IS NULL
DataSet set = service.querys("bs_dict(ID,GROUP_CODE,CODE,NM,VAL)", store);
service.query("bs_dict", "+id:"); // ID IS NULL
//关于几个 空值 的查询条件
ConfigStore store = new DefaultConfigStore();
store.and("+ID", null); // ID IS NULL
store.and("+REMARK", ""); // REMARK = ''
store.and("+IDX", "".split(",")); // IDX = ''
store.and("+CODE", new ArrayList<>()); // CODE IS NULL
store.and("+VAL", new String[]{}); // VAL IS NULL
DataSet set = service.querys("bs_dict(ID,GROUP_CODE,CODE,NM,VAL)", store);