Example (standard-style syntax). Verify supported keywords in your database.
-- PostgreSQL / standard information schema
SELECT table_name FROM information_schema.tables WHERE table_schema = 'public';Inspect schema metadata; these commands are client-specific rather than portable SQL.
Use the database client's schema inspection command or query its information schema/catalog.Example (standard-style syntax). Verify supported keywords in your database.
-- PostgreSQL / standard information schema
SELECT table_name FROM information_schema.tables WHERE table_schema = 'public';SQLite-oriented variant; dialect behaviour may differ.
-- SQLite
.tables
.schema users| Option / clause | Description |
|---|---|
EXPLAIN | Show the optimizer's planned execution strategy. |
ANALYZE | Some engines execute the statement and report actual statistics; this can run the query. |
FORMAT | Choose plan output format where supported. |
Catalog / information schema | Inspect objects and definitions through system metadata. |
Dialect / version | Check the linked database manual for vendor-specific behaviour. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.