我有以下对象,它是一个微风.js 实体。我正在尝试按功能进行基本分组。在这种情况下,它会引发错误。问题是不支持 Breeze 实体吗?基本的选择语句在这个对象上运行良好!
Object-
count:1
description:"1 sweepstake ticket"
displayName:"1 sweepstake ticket"
payload:"1"
rewardId:14
type:3
var res = alasql('SELECT type, SUM(count) AS b FROM ? group by type', [data]);
console.log(res);
收到此错误:{消息:“第 1 行解析错误:↵...LECT 类型,SUM(count) AS...--------------------^↵Expecting ' LPAR',得到'RPAR'”,散列:Object}hash:Objectexpected:Array[1]0:“'LPAR'”长度:1__proto__:Array[0]line:0loc:Objecttext:“)”token:“RPAR” proto:Objectmessage:“第 1 行解析错误:↵...LECT 类型,SUM(count) AS b FROM ? group ↵---------------------- -^↵期望'LPAR',得到'RPAR'”原型:错误()(匿名函数)@ angular.js:11655(匿名函数)@ angular.js:8596(匿名函数)@ angular.js:13256$eval @ angular.js:14466$digest @ angular.js:14282(匿名函数) @ angular.js:14505e @ angular.js:4924(匿名函数) @ angular.js:5312 8notificationService.js:84 轮询回调
谢谢