我试图从“users”表中选择“reset_code_date”不为空的所有数据。 我怎样才能用 propel 做到这一点?
现在我有这个:
$canceledusers = UserQuery::create()->filterByResetCodeDate()->find();
如您所见,现在我选择了reset_code_date 为NULL 的所有字段。但是我怎样才能选择所有不为空的字段呢?
最佳答案
试试这个:
$canceledusers = UserQuery::create()->where('reset_code_date is not null')->find();
关于php - 选择字段不为空的数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18983136/