get_enum_values
Retrieves all unique values from a specified column to reveal possible statuses, types, or categories. Use it to understand data distributions and craft precise WHERE conditions.
Instructions
获取指定列的所有唯一值。用于了解 status、type、category 等枚举类型列的所有可能值,帮助生成准确的 WHERE 条件。例如:获取 orders.status 列的所有状态值(pending, shipped, delivered 等)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 最大返回数量(可选,默认 50,最大 100)。如果唯一值超过此数量,说明该列可能不是枚举类型。 | |
| tableName | Yes | 表名。支持 schema.table_name 格式指定 Schema(如 analytics.users)。 | |
| columnName | Yes | 列名(通常是 status、type、category 等枚举类型的列) | |
| includeCount | No | 是否包含每个值的出现次数(可选,默认 false)。设为 true 可了解数据分布。 |