Use semicolons (;) to separate SELECT statements in a query.
Example
CLI
The following example shows how to separate SELECT statements if you use the command-line interface (CLI) of TSDB for InfluxDB®.
> SELECT MEAN("water_level") FROM "h2o_feet"; SELECT "water_level" FROM "h2o_feet" LIMIT 2name: h2o_feettime mean---- ----1970-01-01T00:00:00Z 4.442107025822522name: h2o_feettime water_level---- -----------2015-08-18T00:00:00Z 8.122015-08-18T00:00:00Z 2.064
HTTP API
The following example shows how to use the HTTP API of TSDB for InfluxDB®.
{"results": [{"statement_id": 0,"series": [{"name": "h2o_feet","columns": ["time","mean"],"values": [["1970-01-01T00:00:00Z",4.442107025822522]]}]},{"statement_id": 1,"series": [{"name": "h2o_feet","columns": ["time","water_level"],"values": [["2015-08-18T00:00:00Z",8.12],["2015-08-18T00:00:00Z",2.064]]}]}]}
InfluxDB® is a trademark registered by InfluxData, which is not affiliated with, and does not endorse, TSDB for InfluxDB®.