全部转换为小写字符再进行比较

from sqlalchemy import func
user = models.User.query.filter(func.lower(User.username) == func.lower("GaNyE")).first()

相关文章:

  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-05-27
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2021-11-04
  • 2021-05-24
  • 2022-12-23
  • 2021-10-06
相关资源
相似解决方案