开发者

Android's count field in BaseColums

开发者 https://www.devze.com 2023-03-17 21:41 出处:网络
i have been working with a database defining the columns with the help of the BaseColumns inter开发者_JS百科face. its pretty standard implementation. but i am curious about the Count constant mentione

i have been working with a database defining the columns with the help of the BaseColumns inter开发者_JS百科face. its pretty standard implementation. but i am curious about the Count constant mentioned there. i am using a content provider for the queries so a custom count query isn't really an option. so far i have been using the query count with a projection of only the ids, seemed more lighweight that way.

what is the _COUNT field in BaseColumns used for? i am assuming its for a count of rows. how do i build the scheme with that field?

how do i query the count?

0

精彩评论

暂无评论...
验证码 换一张
取 消