【发布时间】:2017-08-21 17:25:56
【问题描述】:
我正在使用带有 sqlite 表的 Peewee ORM。我有以下 sqllite 语句:
SELECT * FROM mytable WHERE name LIKE '% string1 %' or name LIKE '%string2 %' OR name LIKE '%string3 %'
如何在 Peewee 中做到这一点?
注意我已阅读 http://docs.peewee-orm.com/en/latest/peewee/querying.html#query-operators ,但不确定如何在此处应用。
【问题讨论】: