Sql 如何在sqflite on Flatter中同时找到day为5和null的位置?

Sql 如何在sqflite on Flatter中同时找到day为5和null的位置?,sql,sqlite,flutter,dart,sqflite,Sql,Sqlite,Flutter,Dart,Sqflite,如何在sqflite on flatter中同时在列中找到day为5和null的位置 final templates = await db.query( Constants.dbTable, where: "${Constants.dbColDays} LIKE ?", whereArgs: ['%${day}%', 'IS NULL'], ); 修好了 final templates = await db.query( Constants.dbTable, where:

如何在sqflite on flatter中同时在列中找到day为5和null的位置

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}%'],
);

样本数据和预期结果将有所帮助。