Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5801 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns


Hello,
You can write as following :

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


Imagine profil
Abandonează
Cel mai bun răspuns

¿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

Imagine profil
Abandonează