天天看點

SQLiteQueryBuilder中的setProjectionMap

這裡的ProjectionMap必須是一個hashmap,更重要的是:

If a projection map is set it must contain all column names the user may request, even if the key and value are the same.

orz...

另外ProjectionMap.put("user_id", UserTableMetaData._ID); 鍵為别名,值為原列名