Mysql SQLAdapter SQL语句
如何修改该语句,使其获得除当前登录的用户之外的每个用户的lat和lon 我的代码如下:Mysql SQLAdapter SQL语句,mysql,sql,database,adapter,procedure,Mysql,Sql,Database,Adapter,Procedure,如何修改该语句,使其获得除当前登录的用户之外的每个用户的lat和lon 我的代码如下: var getLocationStatement = WL.Server.createSQLStatement("SELECT lat, lon FROM fieldservice.location WHERE userId = ?"); function getLocation(userId) { return WL.Server.invokeSQLStatement({ prep
var getLocationStatement = WL.Server.createSQLStatement("SELECT lat, lon FROM fieldservice.location WHERE userId = ?");
function getLocation(userId) {
return WL.Server.invokeSQLStatement({
preparedStatement : getLocationStatement,
parameters : [userId]
});
}
你能不能让你的where语句
where userId!=代码>@GarethD当我尝试调用getLocation过程时,我得到以下错误:{“errors”:[“Runtime:java.lang.ClassNotFoundException:Class com.mysql.jdbc.Driver未在Worklight platform或project\/EMProject中找到],“info”:[],“isSuccessful”:false,“warnings”:[]}