Google Cloud Spanner是否支持“结构”类型?(Does Google Cloud Spanner support 'struct' type?)

编程入门 行业动态 更新时间:2024-10-27 23:21:36
Google Cloud Spanner是否支持“结构”类型?(Does Google Cloud Spanner support 'struct' type?)

似乎扳手支持结构类型。 https://cloud.google.com/spanner/docs/data-types#struct-type

但是,DDL没有提及如何使用。 https://cloud.google.com/spanner/docs/data-definition-language#data_types

这真的让我感到困惑,或者我被文件误解了?

Seems that spanner support struct type. https://cloud.google.com/spanner/docs/data-types#struct-type

However, DDL didn't mention how to use. https://cloud.google.com/spanner/docs/data-definition-language#data_types

It's really confuse me, or I got misunderstood with the documents?

最满意答案

你是对的。 对困惑感到抱歉。

Cloud Spanner不支持Struct作为列类型。 它仅支持Arrays作为列类型,但它确实从Structs中的查询返回数据,因此它是数据返回类型。

You are correct. Sorry for the confusion.

Cloud Spanner doesn't support Struct as a column type. It only supports Arrays as column types, but it does return data from queries in Structs so it's a data return type.

更多推荐

本文发布于:2023-07-31 02:48:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1340419.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:类型   结构   Spanner   Google   Cloud

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!