Turing SQL supports the query clause and the kvpair clause. The query clause is used to write SQL queries, and the kvpair clause is used to specify 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, you can use 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.
该文章对您有帮助吗?