Show CREATE TABLE Statement
mysql_show_create_tableGet the complete CREATE TABLE DDL for a MySQL table, including all indexes, constraints, and engine settings.
Instructions
Get the full CREATE TABLE DDL statement for a table.
Args:
table (string, required): Table name
database (string, optional): Database name. Uses MYSQL_DATABASE if omitted.
Returns the complete CREATE TABLE SQL with all indexes, constraints, and engine settings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name | |
| database | No | Database name (uses MYSQL_DATABASE env var if omitted) |