2011-03-19 88 views

回答

1

用這麼長的方法:

SQLiteQueryBuilder.buildQueryString(boolean distinct, String tables, String[] columns, String where, String groupBy, String having, String orderBy, String limit) 

而在String where將其設置爲類似"column_name LIKE pattern" 請注意,你不會(也不能)的字符串包含單詞「其中」在這個字符串中,因爲它將被構建到它中。

http://developer.android.com/reference/android/database/sqlite/SQLiteQueryBuilder.html