尝试使用 API 调用进行查询时出现以下错误
{
"code": "InvalidParameter",
"message": "The query doesn't contain the variable: id"
}
请在有效负载和执行的调用下方 ci
oci-curl nosql.eu-frankfurt-1.oci.oraclecloud.com post ./request.json "/20190828/query" | jq
[opc@instance-dev ~]$ cat request.json
{
"compartmentId": "ocid1.xxxxxx"
, "statement": "DECLARE $id LONG; SELECT * FROM test_table where id > $id"
, "variables" : {"id":"10"}
}