我跟着nforce link搜索了这样的对象
var selectQuery = "SELECT Name FROM Account Name = 'Spiffy Cleaners'";
org.query({ query: selectQuery, oauth: oauth}, function(err, resp){
if(err) {
console.log(err);
}
});
我一直收到以下错误:
unexpected token: =]
errorCode: 'MALFORMED_QUERY',
body:
[ { message: '\nSELECT Name FROM Account Name = \'Spiffy Cleaners\'\n ^\nERROR at Row:1:Column:30\nunexpected token: =',
errorCode: 'MALFORMED_QUERY' } ],
statusCode: 400 }
感谢。
答案 0 :(得分:0)
您缺少WHERE
声明:
SELECT Name FROM Account WHERE Name = 'Spiffy Cleaners'