Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4503 Visualizzazioni


Hello I want to check output of my query result how i can run that query in pycharm terminal. Here is my created query
self._cr.execute("SELECT name FROM res_partner %s", ('%odoo%',))

data = self._cr.fetchall()
print(data)


Avatar
Abbandona

I think query should be

self._cr.execute("SELECT name FROM res_partner where name ilike %s", ('%odoo%',))

Post correlati Risposte Visualizzazioni Attività
0
giu 20
2765
0
nov 19
4731
4
ago 19
8164
4
lug 19
8964
0
set 23
407