TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

search subtable count' can't support group by tag.

Open march3008 opened this issue 6 years ago • 1 comments

taos> SELECT COUNT(TBNAME) FROM arc_device_type_00f4 group by company_id;

DB error: invalid SQL: retrieve tags not compatible with group by or interval query

taos> SELECT TBNAME FROM arc_device_type_00f4 group by company_id;

DB error: invalid SQL: retrieve tags not compatible with group by or interval query

march3008 avatar May 18 '20 05:05 march3008

https://www.taosdata.com/cn/documentation/super-table/#STable%E5%A4%9A%E8%A1%A8%E8%81%9A%E5%90%88 Only field_name can use GROUP BY

liuyq-617 avatar May 22 '20 08:05 liuyq-617