当前位置:网站首页>Consolidation of Questionnaire Questions and Answers
Consolidation of Questionnaire Questions and Answers
2022-08-09 09:22:00 【research monk who doesn't like research】
The obtained question and answer are in json format, and the field is map
It should be noted that the two fields after the explosion do not need parentheses. If there is a where, where is placed at the end
select q_key, q_valuefrom questionnairelateral view explode(questions) t as q_key, q_value
You can use lateral view explode multiple times
select q_key, q_value, a_key, a_valuefrom questionnairelateral view explode(questions) t as q_key, q_valuelateral view explode(answers) t2 as a_key, a_valuewhere q_key=a_key
边栏推荐
猜你喜欢
随机推荐
verilog独热码实现译码MIPS指令集
营养与健康(HIT2021秋)
JMeter初探五-配置元件与参数化
本体开发日记05-努力理解SWRL(Built-Ins)
Redis基础
Redis高可用
SQL语言中的distinct说明
本体开发日记03-理解代码
手机APP测试流程规范和方法你知道多少?
swap交换分区
go Antlr重构脚本解释器如何实现
对于栈、递归的关系的理解
如何用数组实现环形队列
本体开发日记02-sparql简单查询
MySQL索引
Failed to mount component: template or render function not defined.
栈的实现之用链表实现
convert转换时间详解
困扰很久的问题。今天下午搞定了。
Redis Basics