Syntax
Parameters
Example
IF NOT EXISTS clause is omitted while the WITH option is preserved.
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 TABLE command to see what query was used to create the specified table.
SHOW CREATE TABLE table_name;
| Parameter | Description |
|---|---|
| table_name | The table to show the query of. |
CREATE TABLE IF NOT EXISTS taxi_trips(
id VARCHAR,
distance DOUBLE PRECISION,
city VARCHAR
) WITH (appendonly = 'true');
SHOW CREATE TABLE taxi_trips;
IF NOT EXISTS clause is omitted while the WITH option is preserved.
Name | Create Sql
-----------+---------------------------------------------
public.taxi_trips | CREATE TABLE taxi_trips (id CHARACTER VARYING, distance DOUBLE, city CHARACTER VARYING) WITH (appendonly = 'true')
(1 row)
Was this page helpful?