SQLAlchemy equivalent to SQL “LIKE” statement

前端 未结 5 660
借酒劲吻你
借酒劲吻你 2020-12-02 21:50

A tags column has values like \"apple banana orange\" and \"strawberry banana lemon\". I want to find the SQLAlchemy equivalent statement to

SELECT * FROM ta         


        
5条回答
  •  执笔经年
    2020-12-02 22:28

    try this code

    output = dbsession.query().filter(.email.ilike('%' + < email > + '%'))
    

提交回复
热议问题