Teradatasql Python: 无法传递列名

Teradatasql Python: Unable to pass column name

我正在使用 teradatasql python 模块,但我无法在 documentation 中找到有关如何将命名参数传递到 cursor.execute()

的信息

我有采用 IN 参数的存储过程,但在 teradatasql 中我没有看到传递列名的选项。有什么办法吗?

这是我的 PROC 的一些片段,它采用 IN 个参数

(
        IN transId VARCHAR(50),
        IN name VARCHAR(50),
        IN  add VARCHAR(50),
        IN  zip VARCHAR(50),
        IN  area VARCHAR(50)
    )

代码

with teradatasql.connect ('{"host":"whomooz","user":"guest","password":"please"}') as con:
    with con.cursor () as cur:
        cur_execute (cur, "{call examplestoredproc (?, ?)}", [10, 7]) # bound parameter values

def cur_execute (cur, sSQL, params=None):
    print ()
    print ("cur.execute", sSQL, "bound values", params)
    cur.execute (sSQL, params)

I'm using the teradatasql python module and i'm unable to find in documentation on how to pass named parameters into the cursor.execute()

Teradata 数据库不支持按名称绑定存储过程参数值。因此,teradatasql 驱动程序也不支持。

您必须在调用存储过程时指定问号参数标记,并且必须指定按位置绑定到问号参数标记的未命名存储过程参数值。