Turing SQL supports the query clause and the kvpair clause. The query clause specifies SQL queries, and the kvpair clause specifies related parameters. You can use a built-in tool to manually construct an HTTP request.
The query path for SQL is `/sql`, while the query path for HA3 is `/`.
Execute a query
If you know the IP address and port of the HA3 Qrs service, run the curl command to call the query API.
curl "ip:port/sql?query=SELECT brand, COUNT(*) FROM phone GROUP BY (brand)&&kvpair=trace:INFO;formatType:json"
Important
-
Do not add a space between kvpair and &&. Also, do not add spaces between items in the kvpair clause. Otherwise, parsing will fail.
该文章对您有帮助吗?