I have table with a nullable column which contains both types of values Null (as default) and integer:
class Node(db.Model):
__tablename__ = "node"
maintenance = db.Column(db.Integer, nullable=True)
The request is like this one:
maintenance = 1
node_list = Node.query.filter(Node.maintenance != maintenance).all()
I need to select all cells which contains Null
or 0
values.
Thank you in advance!