gpt4 book ai didi

android - _COUNT 列的用途是什么?

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:11:23 25 4
gpt4 key购买 nike

Android 在 BaseColumns 接口(interface)中指定了 super 方便的 _id 列,其用法在 this question 中有很好的解释。 ,但是 _count 的用途是什么?目录中的行数,什么目录?

public interface BaseColumns
{
/**
* The unique ID for a row.
* <P>Type: INTEGER (long)</P>
*/
public static final String _ID = "_id";

/**
* The count of rows in a directory.
* <P>Type: INTEGER</P>
*/
public static final String _COUNT = "_count";
}

最佳答案

this tutorial 中所述:

Every provider can also report the number of records returned as the _COUNT column; its value is the same for all rows.

Here is an example result set for the query in the previous section:

_ID  _COUNT   NAME           NUMBER
44 3 Alan Vain 212 555 1234
13 3 Bully Pulpit 425 555 6677
53 3 Rex Cars 201 555 4433

关于android - _COUNT 列的用途是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20722014/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com