dongmi0760 2014-05-03 22:41
浏览 15

查询非空字符串属性?

Is there any way to query Datastore for entities where a specific property should not be the empty string?

I'm not referring to missing properties. I really mean non empty strings.

  • 写回答

1条回答 默认 最新

  • doudula1974 2014-05-03 23:12
    关注

    By using filters you can specify that value of the property is greater than "" (empty string). I don't use Go so I can't guarantee if it'll work but in other languages this trick usually works...

    q := datastore.NewQuery("Example").Filter("Property >", "")
    
    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效