Skip to Content
Menu
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
Zrušiť

I think query should be

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

Related Posts Replies Zobrazenia Aktivita
0
jún 20
2766
0
nov 19
4731
4
aug 19
8166
4
júl 19
8966
0
sep 23
407