[
    {
        "role": "user",
        "content": "give%20sqlite%20command%20to%20show%20just%20the%20table%20structure%20of%20a%20table%2C%20not%20all%20the%20triggers%20etc%2C%2C%20just%20the%20data%20definition."
    },
    {
        "role": "assistant",
        "content": "Here are a few SQLite commands that will show you *just* the structure (data definition) of a table\u2014columns, types, defaults, PKs, etc.\u2014without bringing in triggers, views, or other schema objects.\n\n---\n\n## \u2705 Commands to Show Table Structure\n\n1. Use `PRAGMA table_info(<table_name>);`\n\n   - This gives you one row per column: name, type, whether it\u2019s nullable, default value, and whether it\u2019s part of the primary key.  \n   - Sample:  \n     ```\n     PRAGMA table_info(your_table_name);\n     ```\n   - Source: SQLite docs for `table_info` pragma ([sqlite.org](https://www.sqlite.org/pragma.html?utm_source=openai))\n\n2. (If you need hidden or generated columns) Use `PRAGMA table_xinfo(<table_name>);`\n\n   - Similar to `table_info`, but includes hidden or generated columns if any. ([sqlite.org](https://www.sqlite.org/pragma.html?utm_source=openai))\n\n3. Get the CREATE TABLE statement from `sqlite_master`:\n\n   ```sql\n   SELECT sql\n   FROM sqlite_master\n   WHERE type = 'table'\n     AND name = 'your_table_name';\n   ```\n\n   - This returns the original CREATE TABLE statement that defines the table (structure like column definitions, primary key constraints, etc.).  \n   - Source: FAQs about SQLite schema info ([wizardforcel.gitbooks.io](https://wizardforcel.gitbooks.io/sqlite-doc-en/content/7.html?utm_source=openai))\n\n---\n\n## \u26a0\ufe0f Notes & What These Don\u2019t Do\n\n- `PRAGMA table_info` and `table_xinfo` show only the *table\u2019s columns*, not triggers, indexes, or other schema parts. Great when you want just the \u201cdata definition\u201d (structure).  \n- The `sqlite_master` query gives the full CREATE TABLE statement, which *includes* column definitions and table-level constraints\u2014but **won\u2019t include triggers** (unless you explicitly query triggers).  \n- Internal/hidden columns (like those used in virtual tables) might not be shown in `PRAGMA table_info`, which is why `table_xinfo` exists. ([sqlite.org](https://www.sqlite.org/pragma.html?utm_source=openai))\n\n---\n\nIf you tell me which environment you're using (SQLite CLI, within an application/library, etc.), I can give you the command that fits best for your case."
    }
]