zhongjh

关注

Can't resolve label reference for ORD

zhongjh

关注

阅读 172

2022-08-12

之前的写法:

1 Table.query.filter().order_by(" xxx desc ").all()

 

改成如下,加个 text(),问题解决

1 from sqlalchemy.sql import text
2
3
4 Table.query.filter().order_by(text(" xxx desc ")).all()

 



相关推荐

冶炼厂小练

Vue报错:Can‘t resolve

冶炼厂小练 123 0 0

IT影子

解决:Can‘t resolve vue-awesome-swiper/dist/ssr

IT影子 147 0 0

墨春

Error: Can't resolve 'fs' in (webpack 2配置CSS loadeers)

墨春 117 0 0

爱我中华8898

Can‘t resolve the priv_dir of application webtest_app

爱我中华8898 127 0 0

大柚子top

[kubernetes/docker] failed to resolve reference ...:latest: not found

大柚子top 47 0 0

日月同辉9908

Can‘t update

日月同辉9908 15 0 0

影子喵喵喵

解决新安装CentOS 7系统mirrorlist.centos.org can‘t resolve问题

影子喵喵喵 6 0 0

cwq聖泉寒江2020

解决Vue中Module not found: Error: Can‘t resolve ‘xxxxx‘ 究极管用办法

cwq聖泉寒江2020 136 0 0

流沙雨帘

a label can only be part of a statement and a declaration is not a statement

流沙雨帘 15 0 0

一枚路过的程序猿

can't find package Expect

一枚路过的程序猿 39 0 0

精彩评论(0)

0 0 举报