Couchbase选择保留关键字列



在我的couchbase查询中,我收到错误,因为"路径"是保留关键字。

select RawUrl, Path from couchbaseSample order by CreateTimeUtc desc
[{"code":3000,"msg":"syntax error - at Path"}

我尝试使用[Path],但没有工作。

如何解决这个问题?

可以使用反号转义保留字。

select RawUrl, `Path` from couchbaseSample order by CreateTimeUtc desc

最新更新