[英]Need to fetch value from array for each index in MAT
Need to fetch value from array for each in MAT需要从 MAT 中的每个数组中获取值
SELECT a.table[0].value.specVersion.value FROM OBJECTS 742325 a
In above query, i am able to get the value on specific index but i want run in loop to fetch value for every index in an array.在上面的查询中,我能够获取特定索引的值,但我想在循环中运行以获取数组中每个索引的值。
Something like就像是
SELECT b.value.specVersion.value from OBJECTS (SELECT a.table[0:-1] FROM OBJECTS 742325 a) b
should work, though it doesn't give you the array index.应该工作,虽然它没有给你数组索引。 The inner select gives you the array contents, the outer one then steps through the contents.
内部选择为您提供数组内容,然后外部选择遍历内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.