Re: Why not used standart SQL commands?

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Ali Koca <kinetixcicocuk(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Why not used standart SQL commands?
Date: 2022-01-08 18:34:48
Message-ID: c62f2d1c-906a-87c4-9fe7-515353a39dda@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2022-01-08 18:38:36 Re: Why not used standart SQL commands?
Previous Message Tom Lane 2022-01-08 18:30:12 Re: Why not used standart SQL commands?