Amazon web services 如何从存储在Amazon Redshift列中的JSON数组中获取字符串?
我在Amazon Redshift中存储了一个数据库,在表列中以JSON格式存储了一个数组 如何从数组中提取字符串?使用: 使用:Amazon web services 如何从存储在Amazon Redshift列中的JSON数组中获取字符串?,amazon-web-services,amazon-redshift,Amazon Web Services,Amazon Redshift,我在Amazon Redshift中存储了一个数据库,在表列中以JSON格式存储了一个数组 如何从数组中提取字符串?使用: 使用: 使用json_extract_path_text,您可以从列中检索值 此查询执行联接和查询以获得单独的列结果 SELECT json_extract_path_text(O._doc,'domain') AS Domain, json_extract_path_text(P._doc,'email') AS Email FROM intelli
使用json_extract_path_text,您可以从列中检索值
此查询执行联接和查询以获得单独的列结果
SELECT json_extract_path_text(O._doc,'domain') AS Domain,
json_extract_path_text(P._doc,'email') AS Email
FROM intelligense_mongo.organisations AS O
INNER JOIN intelligense_mongo.people AS P
ON json_extract_path_text(O._doc,'_id') =
json_extract_path_text(P._doc,'organisation_id')
Where
json_extract_path_text(O._doc,'tools_name') = '%"WordPress"%'
使用json_extract_path_text,您可以从列中检索值
此查询执行联接和查询以获得单独的列结果
SELECT json_extract_path_text(O._doc,'domain') AS Domain,
json_extract_path_text(P._doc,'email') AS Email
FROM intelligense_mongo.organisations AS O
INNER JOIN intelligense_mongo.people AS P
ON json_extract_path_text(O._doc,'_id') =
json_extract_path_text(P._doc,'organisation_id')
Where
json_extract_path_text(O._doc,'tools_name') = '%"WordPress"%'