| '-'

问题描述 投票:0回答:1

我有一个查询。

cur.execute('SELECT X1 || ' - ' || X2 FROM SPL_PAYMENTS(?, ?, NULL, NULL)', (result1[0], result1[0]))

当我从数据库中执行一个查询时,我得到这个错误。我不明白为什么。TypeError: unsupported operand type(s) for -: 'str' and 'str' (不支持操作数类型)

这个

sql python-3.x firebird firebird2.5
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.