我有一列里面有 7 个不同的值。我只想从这 7 个值中选择一个,我该如何查询?
I have a column with 7 different values inside. I'm interested in just selecting one of those 7 values, how can I query this?
我的旅行中有一栏名为“目的地”table。在该列中,我有城市、国家/地区、街道等值。
我只想 select 国家/地区的值,我该如何查询?
只需使用 :
符号导航到一个对象:
select destination:country
from (
select parse_json('{"country":"Chile", "city":"Santiago"}') destination
)
我的旅行中有一栏名为“目的地”table。在该列中,我有城市、国家/地区、街道等值。
我只想 select 国家/地区的值,我该如何查询?
只需使用 :
符号导航到一个对象:
select destination:country
from (
select parse_json('{"country":"Chile", "city":"Santiago"}') destination
)