0
这是我的代码:如何获取其中包含“SSS”,而不是“=”,在信息
class Marker_latlng(db.Model):
geo_pt = db.GeoPtProperty()
class Marker_info(db.Model):
info = db.StringProperty()
marker_latlng =db.ReferenceProperty(Marker_latlng)
q = Marker_info.all()
q.filter("info =", "sss")
,但如何获得包含“SSS”,而不是“=”的信息,
有一个像“包含”的方法?
可能的重复:http://stackoverflow.com/questions/3172292/gql-find-all-entities-that-contain-a-substring – geoffspear 2010-09-17 03:18:12