from active_alchemy import ActiveAlchemyclass MyModel(db.Model): name = db.Column(db.String# Put at the end of the model module to auto create all models
db.create_all() 这行得通,但下面的代码不行: from active_alchemy
现在,我想将一个值列表作为参数传递给该查询。from_statement('SELECT name FROM users WHERE id IN(:ids)') \由于以下错误,此操作不起作用:
sqlalchemy.exc.InterfaceError:(InterfaceError)错误绑定参数2-可能不支持类型。