开发者社区 问答 正文

SQLAlchemyfilter模糊查询返回名字结尾字符为g的所有数据的代码是什么?

SQLAlchemyfilter模糊查询返回名字结尾字符为g的所有数据的代码是什么?

展开
收起
游客qzzytmszf3zhq 2021-11-19 11:45:26 421 分享 版权
1 条回答
写回答
取消 提交回答
  • User.query.filter(User.name.endswith('g')).all()
    
    2021-11-19 11:45:38
    赞同 展开评论
问答地址: