我需要以下值作为 Couchbase DB 的 N1QL 查询输出中的字符串。
当前 -
"cas": 1499937943452123136
预期 -
"cas": "1499937943452123136"
Cbq查询:
select meta().cas from sampledb where type = "PROD" and Id =
"PROD_101"
请求您的帮助。
最佳答案
使用 to_string 函数。
select to_string(meta().cas) from sampledb where type = "PROD" and Id = "PROD_101"
您使用的是哪个版本的 Couchbase?
关于couchbase - 将 Couchbase DB 的 n1ql 查询输出中的数字转换为字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45082213/