Syntax
Parameters
Example
We can create a tablet3 and an index idx1 on t3.
SHOW CREATE INDEX command on idx1 to see the query used.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use the SHOW CREATE INDEX command to see what query was used to create the specified index.
SHOW CREATE INDEX index_name;
| Parameter | Description |
|---|---|
| index_name | The index to show the query of. |
t3 and an index idx1 on t3.
CREATE TABLE IF NOT EXISTS t3 (
v1 int,
v2 int,
v3 int);
CREATE INDEX idx1 ON t3 (v1,v2);
SHOW CREATE INDEX command on idx1 to see the query used.
SHOW CREATE INDEX idx1;
Name | Create Sql
-------------+---------------------------------
public.idx1 | CREATE INDEX idx1 ON t3(v1, v2)
(1 row)
Was this page helpful?