【问题标题】:Can I use comments in GQL when using the Google Cloud Datastore GQL editor?使用 Google Cloud Datastore GQL 编辑器时,我可以在 GQL 中使用注释吗?
【发布时间】:2019-06-25 16:56:17
【问题描述】:

在 Google Cloud DataStore 中使用“Query by GQL”编辑器时,如何在 GQL 中添加 cmets?以下不起作用

--
#
//
/* ... */

如果我使用--,Google Cloud DataStore 编辑器似乎会突出显示文本作为注释,但是当我运行查询时会显示以下错误:

GQL Query error: Lexical error

这里没有提到cmets:

GQL - Unsupported features and behavior differences from MySQL/Python GQL

由于 GQL 可能与 MySQL 最相似,我希望以下任一方法都可以工作,因为它们都代表 MySQL 中的 cmets:

-- #

【问题讨论】:

    标签: google-cloud-platform google-cloud-datastore gql


    【解决方案1】:

    很遗憾,GQL 不支持 cmets。 Cloud Console 中的“按 GQL 查询”视图不存储任何过去的查询 找到一种方法来记录您在 Cloud Console 之外的调试查询。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-16
      • 2018-11-05
      • 2014-03-02
      • 1970-01-01
      • 2019-07-11
      • 1970-01-01
      • 2021-12-20
      • 1970-01-01
      相关资源
      最近更新 更多