[英]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.