Couchbase选择名为column的保留关键字

Couchbase选择名为column的保留关键字,couchbase,n1ql,Couchbase,N1ql,在我的couchbase查询中,我收到错误,因为“Path”是保留关键字 select RawUrl, Path from couchbaseSample order by CreateTimeUtc desc [{"code":3000,"msg":"syntax error - at Path"} 我尝试使用[Path],但没有成功 如何解决此问题?您可以使用反勾号转义保留字 select RawUrl, `Path` from couchbaseSample order by Crea

在我的couchbase查询中,我收到错误,因为“Path”是保留关键字

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

您可以使用反勾号转义保留字

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