在Quickbooks SDK中是否支持别名?

huangapple go评论139阅读模式
英文:

Is Aliasing works for Quickbooks sdk?

问题

我正在使用JAVA从QuickBooks SDK中获取数据。我可以运行以下类型的查询:

选择 * from invoice。

选择 * from invoice where id =1;

但是当我使用别名 'as' 时

选择 id as myid from invoice。

它会抛出以下错误

线程中的异常 "main" com.intuit.ipp.exception.FMSException: 错误代码:4000, 错误消息:解析查询时出错, 错误详情:QueryParserError: 在第1行,第11列遇到 "as" "as " 的错误。
预期是以下之一:

"," ...
".*" ...
"from" ...
"iterator" ...
"maxresults" ...
"order" ...
"orderby" ...
"startposition" ...
"where" ..

是否有任何替代查询,以便我可以使用别名?

英文:

I am Working on fetching data from quickbooks SDK through JAVA.
I am able to run these type of queries

select * from invoice.

select * from invoice where id =1;

but when i am using aliases 'as'

select id as myid from invoice.

it is throwing below error

Exception in thread "main" com.intuit.ipp.exception.FMSException: ERROR CODE:4000, ERROR MESSAGE:Error parsing query, ERROR DETAIL:QueryParserError: Encountered " "as" "as "" at line 1, column 11.
Was expecting one of:
<EOF>
"," ...
".*" ...
"from" ...
"iterator" ...
"maxresults" ...
"order" ...
"orderby" ...
"startposition" ...
"where" ..

IS there any alternative query so that i can uses aliasing??

答案1

得分: 1

以下是要翻译的内容:

有效的语法在此文档中描述:

别名(例如使用 AS 关键字)不受支持。

英文:

Valid syntax is described in the docs here:

Aliasing (e.g. use of the AS keyword) is not supported.

huangapple
  • 本文由 发表于 2020年8月1日 13:56:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/63202261.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定