get_table_sample
Fetch a sample of rows from a MySQL table to quickly inspect its data format and content before writing queries.
Instructions
Fetch a small sample of rows from a table to understand its data format and content. Use alongside get_schema_info before writing complex queries. Accepts bare table names (uses MYSQL_DATABASE) or database.table for cross-database lookups.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table_name | Yes | Table to sample. Use database.table notation for cross-database queries. | |
| limit | No | Number of rows to return (default 5, max 20). |