我有一个名为的数据模型Game.
Game
在Game模型中,我有两个属性player1,player2它们是名称.
player1
player2
我想找到一个播放器,game但我不知道如何构建查询,因为gql不支持OR子句,然后我不能使用select * from Game where player1 = 'tom' or player2 = 'tom'语句.
game
OR
select * from Game where player1 = 'tom' or player2 = 'tom'
那么,我该如何解决这个问题呢? 我是否必须修改我的数据模型?
python google-app-engine
google-app-engine ×1
python ×1