【问题描述】
内置SQL如何表示null?
【解决办法】
1. Sequoiadb支持内置SQL,查询字段包含null的示例:
db.exec('select * from foo.bar where a is null');
2. 内置SQL也支持非null用法(v2.6及v2.8.4之前使用isnot null,v2.8.4及以后版本建议使用is not null),如查询字段不包含null:
db.exec('select * from foo.bar where a isnot null');
db.exec('select * from foo.bar where a is not null');
【参考资料】
is null用法: http://doc.sequoiadb.com/cn/SequoiaDB-cat_id-1512527199-edition_id-208