TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

query the data in the super table and remove the TBNAME in the where restriction, the query results will be less

Open deuxmille opened this issue 5 years ago • 1 comments

taos> select tbname,* from stable_tick where tbname like 'ag2106' and action_timestamp_>'2021-02-09 20:00:00' and action_timestamp_<'2021-02-10 20:00:00' and trading_date_=20210210 >> /dev/null; Query OK, 43323 row(s) in set (0.574407s)

taos> select tbname,* from stable_tick where tbname like 'SH600519' and action_timestamp_>'2021-02-09 20:00:00' and action_timestamp_<'2021-02-10 20:00:00' and trading_date_=20210210 >> /dev/null; Query OK, 5042 row(s) in set (0.614521s)

taos> select tbname,* from stable_tick where action_timestamp_>'2021-02-09 20:00:00' and action_timestamp_<'2021-02-10 20:00:00' and trading_date_=20210210 >> /dev/null; Query OK, 20877 row(s) in set (0.947138s)

第三句话想查询超级表中所有符合该时间区间的数据,查询结果太少了。

deuxmille avatar Feb 21 '21 03:02 deuxmille

I need to know the table schema

Shawshank-Smile avatar Feb 22 '21 14:02 Shawshank-Smile