跳至內容
選單
此問題已被標幟
2 回覆
5782 瀏覽次數

Hi ! I have created a stored proecedure in postgreSQL and i would like to call it in my python code. Someone could help?

頭像
捨棄
最佳答案


Hello,
You can write as following :

self._cr.execute("select * from procudure_name(%s);"%(value))


頭像
捨棄
最佳答案

¿Can you translate the stored procedure to ORM? Call stored procedure is not the best solution.

But if not, you can make a get request to external service

頭像
捨棄