转自:http://zhidao.baidu.com/question/239338563.html
Cursor cursor = db.query("user",new String[]{"id","name"},"id=?",new String[]{"1"},null,null); while(cursor.moveToNext()){ String name = cursor.getString(cursor.getColumnIndex("name")); System.out.println("query--->" + name); }