Skip to Content
Menú
This question has been flagged


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
Descartar

I think query should be

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

Related Posts Respostes Vistes Activitat
0
de juny 20
2765
0
de nov. 19
4729
4
d’ag. 19
8163
4
de jul. 19
8964
0
de set. 23
407