sql - TDengine的两个超级表join查询错误
问题描述
我想加入查询TDengine数据库的两个超级表。
超级表的模式在这里: s1 (ts timestamp, v int) tags (t bindary(64)) s2 (ts timestamp, v int) tags (t bindary(64))
taos> select * from s1, s2 and s1.ts = s2.ts
DB error: invalid SQL: super table join requires tags column
taos> select * from s1, s2 and s1.ts = s2.ts where s1.tag = s2.tag and s1.ts = s2.ts
DB error: syntax error near "tag = s2.tag;"
有人可以帮我指出我该怎么做吗?
解决方案
推荐阅读
- javascript - 无限滚动(向上)在过快时卡住
- r - R中的隐式与显式if/else,括号改变输出?
- express - 各种环境中的 POST 请求
- xpath - XPATH 选择所有以下兄弟姐妹以及匹配的元素
- mongodb - 在 MongoDB 中存储 @discordjs/voice VoiceChannel
- javascript - 猫鼬:在孩子更新时更新父母
- html - Bootstrap:在手机上,右侧有空白,导航栏不完整
- javascript - why my localstorage is lagged and doesn't catch up?(react.js)
- three.js - Transparency texture display incorrectly
- java - AWS ProfileCredential 提供 AWS SDK1 VS AWS SDK 2 JAVA