JAVA关于在函数内的局部变量的生命周期,及返回值问题
sql = String.format("SELECT mMax FROM ItemParas WHERE sampleType ='%s' and name ='%s',
softType, item);
Cursor c = null;
c = db.rawQuery(sql, null);
if (c.moveToNext()) {
String max = c.getString(c.getColumnIndex("mMax"));
...
原创
2020-05-18 16:30:55 ·
610 阅读 ·
0 评论