Python 如何使用sqlalchemy调用postgresql存储过程?
我在postgresql中开发了一个存储过程,它接受两个参数&我使用下面的代码使用sqlalchemy调用它,但得到语法错误 我尝试过sqlalchemy在线教程Python 如何使用sqlalchemy调用postgresql存储过程?,python,django,postgresql,sqlalchemy,Python,Django,Postgresql,Sqlalchemy,我在postgresql中开发了一个存储过程,它接受两个参数&我使用下面的代码使用sqlalchemy调用它,但得到语法错误 我尝试过sqlalchemy在线教程 connection.execute('stored_proce_name ?, ?', para_1, para_2 ) 获取错误,如:ProgrammingError('(psycopg2.errors.SyntaxError)语法错误位于或接近“
connection.execute('stored_proce_name ?, ?', para_1, para_2 )
获取错误,如:ProgrammingError('(psycopg2.errors.SyntaxError)语法错误位于或接近“存储的进程名称”\n第1行:存储的进程名称?,?\n^\n')我是这样做的:
result = conn.execute(StoredProc("add", (3, 4), Integer))
整数的含义是什么?它被称为返回类型HI @ Moon,如果我的答案对你有用,请考虑将它投票和/或选择它作为最终答案。谢谢您好,
storedProcess
类来自哪里?