1 Answer
- Newest
- Most votes
- Most comments
0
【以下的回答经过翻译处理】 要访问集合(数组、字符串、对象)中的元素,请使用SQL函数[get](https://docs.aws.amazon.com/iot/latest/developerguide/iot-sql-functions.html)函数:
在您的情况下,使用get()而不是方括号来访问您的数组元素:
SELECT * as result FROM 'topic' where get(get(state.reported.temp,0),2) = 2
Relevant content
- Accepted Answerasked 10 months ago
- asked a year ago
- asked 10 months ago
- Accepted Answerasked 6 months ago
- AWS OFFICIALUpdated 7 days ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 10 months ago