股票类
class stock(db.Model):
part_number = db.StringProperty()
description = db.StringProperty()
units = db.StringProperty()
remark = db.StringProperty()
pid = db.StringProperty()
以下是我的Gql查询:
db.GqlQuery("Select * from stock where part_number>=:1 and part_number<:2 and pid=:3 and remark ='Result'",old_part,old_part+ u"\ufffd",pid)
此返回零记录(但数据存储区已有4个记录)
我删除了一个参数“pid”并运行查询 - 它返回4条记录
db.GqlQuery("Select * from stock where part_number>=:1 and part_number<:2 and remark ='Result'",old_part,old_part+ u"\ufffd")
我删除了另一个参数备注并运行查询 - 它还返回4条记录
db.GqlQuery("Select * from stock where part_number>=:1 and part_number<:2 and pid=:3",old_part,old_part+ u"\ufffd",pid)
为什么第一个查询返回0记录?