Re: Why not used standart SQL commands? - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Why not used standart SQL commands?
Date
Msg-id c62f2d1c-906a-87c4-9fe7-515353a39dda@aklaver.com
Whole thread Raw
In response to Why not used standart SQL commands?  (Ali Koca <kinetixcicocuk@gmail.com>)
List pgsql-general
On 1/8/22 10:25, Ali Koca wrote:
> Hello,
> 
> I'm seeing \dt used for "show tables", \l used for "show databases". Why
> not standart SQL syntax words? Why specified PostgreSQL commands?
> I can't figure out that.

AFAIK, SHOW TABLES is a MySQL thing.

See here:

https://www.sqltutorial.org/sql-list-all-tables/


If you are looking for a 'standard' method then look at:

https://www.postgresql.org/docs/current/information-schema.html

in particular:

https://www.postgresql.org/docs/current/infoschema-tables.html



> 
> Ali
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Why not used standart SQL commands?
Next
From: Tom Lane
Date:
Subject: Re: Why not used standart SQL commands?