记录一下 :
sqlalchemy 在使用时打印的原生sql正常,但是运行时报该错误
原因: 在查询字段里
func.coalesce(
(
LendPerson.real_time_wages
* LendPerson.real_period
* LendPerson.coefficient,
),
0,
)
在相加时多填写了一个逗号,致使报错
记录一下 :
sqlalchemy 在使用时打印的原生sql正常,但是运行时报该错误
原因: 在查询字段里
func.coalesce(
(
LendPerson.real_time_wages
* LendPerson.real_period
* LendPerson.coefficient,
),
0,
)
在相加时多填写了一个逗号,致使报错