show_create_table
Get the exact CREATE TABLE statement for any table in a Trino cluster. Specify table name with optional catalog and schema to retrieve its full DDL.
Instructions
Show the CREATE TABLE statement for a table.
Args: table: The table name (e.g. 'my_table'). Preferably just the table name; catalog and schema should be passed as separate parameters. Fully qualified names like 'catalog.schema.table' are also accepted. catalog: The catalog name (optional if default is configured) schema: The schema name (optional if default is configured)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | The table name (e.g. 'my_table'). Preferably just the table name; catalog and schema should be passed as separate parameters. Fully qualified names like 'catalog.schema.table' are also accepted for convenience. | |
| schema | No | The schema name (e.g. 'my_schema') | |
| catalog | No | The catalog name (e.g. 'my_catalog') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |