简体   繁体   中英

Need to fetch value from array for each index in MAT

Need to fetch value from array for each in 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM