杰森响应数组数据中的 where 子句



我在我的安卓应用程序中的杰森响应中返回了一些数组数据,代码如下。

JSONArray jsonArray = new JSONArray(json);
String[] stocks = new String[jsonArray.length()];
for (int i = 0; i < jsonArray.length(); i++) {
JSONObject obj = jsonArray.getJSONObject(i);
stocks[i] = obj.getString("name");
stocks[i] = obj.getString("mobile_numer");
}

我需要做的是仅像常规sql一样针对某些mobile_number返回数据where mobile_number=$mobile_number如何在上面实现这一点

只需使用手机号码作为查询字符串参数请求,然后将此值添加到服务器端的WHERE子句中 - 以便不必在客户端乱七八糟。

最新更新