如果要找出某一个字段IS NULL的所有数据,该如何写?
Possible options are: gt, gte, lt, lte, ne, between/…, nbetween/notbetween/!.., in, not, like, nlike/notlike
这里并没有找到is null。。。
楼主的意思是 Regexp 吗?抱歉可能因为语言风俗习惯不同,我看不太懂楼主的意思
@grass0916
就是查询空值(NULL),在SQL中空值不能用=判断只能用IS NULL,但是Sequelize好像没有提供这个判断
where: { name: null }
试试
@cfltdf http://stackoverflow.com/questions/10807765/node-js-sequelize-multiple-where-query-conditions
CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。
楼主的意思是 Regexp 吗?抱歉可能因为语言风俗习惯不同,我看不太懂楼主的意思
@grass0916
就是查询空值(NULL),在SQL中空值不能用=判断只能用IS NULL,但是Sequelize好像没有提供这个判断
where: { name: null }
试试
@cfltdf http://stackoverflow.com/questions/10807765/node-js-sequelize-multiple-where-query-conditions