繁体   English   中英

我如何在颤振的 sqflite 中同时找到 5 和 null 的位置?

[英]How do I find where day are 5 and null at the same time in sqflite on flutter?

我如何在 flutter 上的 sqflite 中同时找到列中第 5 天和空的位置?

final templates = await db.query(
  Constants.dbTable,
  where: "${Constants.dbColDays} LIKE ?",
  whereArgs: ['%${day}%', 'IS NULL'],
);

修复

final templates = await db.query(
  Constants.dbTable,
  where: "${Constants.dbColDays} LIKE ? OR ${Constants.dbColDays} IS NULL",
  whereArgs: ['%${day}%'],
);

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM