Alternatives for backslashed commands in Postgresql

Asked

Viewed 52 times

0

I’m learning to use the Postgresql instead of Mysql and Sqlserver, but I’m still lost with some basic commands.

So far, the only one I’ve been able to get acquainted with is this:

listar os bancos de dados    
\l -> SELECT datname FROM pg_database;

I would like help to understand what the alternatives to these commands would be:

\c nome_do_banco -> para acessar o banco de dados
\dt -> listar todas as tabelas
\d nome_da_tabela -> descreve a tabela
  • You want to know what these commands do or their equivalent in SQL?

  • These are the equivalent SQL commands.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.