describe_table
Retrieve the full structure of a table or view, including columns, types, nullability, defaults, primary keys, constraints, indexes, and partition lists, with view definitions when applicable.
Instructions
查看表/视图的完整结构:列清单(类型/可空/默认值/注释)、主键与约束、全部索引及其定义;视图返回视图定义 SQL,分区表返回分区清单。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | 表名或视图名(必填) | |
| schema | No | 模式名,省略时自动在非系统模式中查找(歧义时报错) | |
| instance | No | 数据源名称(配置文件中 instance 的 name),省略时使用默认实例 |