Ongeveer 53 resultaten
Koppelingen in nieuw tabblad openen
  1. How to show data in a table by using psql command line interface?

    26 mrt. 2020 · 216 Is there a way to show all the content inside a table by using psql command line interface? I can use \list to show all the databases, \d to show all the tables, but how can I show all …

  2. How to exit from PostgreSQL command line utility: psql

    18 okt. 2016 · What command or short key can I use to exit the PostgreSQL command line utility psql?

  3. postgresql - How to save psql output to a file? - Stack Overflow

    16 mrt. 2011 · I'm using psql's \\dt to list all tables in a database and I need to save the results. What is the command to export the results of a psql command to a file?

  4. How do I specify a password to 'psql' non-interactively?

    If its not too late to add most of the options in one answer: There are a couple of options: set it in the pgpass file. link set an environment variable and get it from there: export PGPASSWORD='password' …

  5. Run PostgreSQL queries from the command line - Stack Overflow

    17 jul. 2025 · psql -U username -d mydatabase -c 'SELECT * FROM mytable' If you're new to postgresql and unfamiliar with using the command line tool psql then there is some confusing behaviour you …

  6. How do you use script variables in psql? - Stack Overflow

    @alphabetasoup Yep, you can use psql -f - etc. Like many things, psql isn't exactly pretty, but it gets the job done. It's easier to use -v than to compose a \set command in stdin though.

  7. database - How to show tables in PostgreSQL? - Stack Overflow

    psql -U postgres psql --username=postgres 2. Show tables Now in Psql you could run commands such as: \? list all the commands \l list databases \conninfo display information about current connection …

  8. How to execute multiple queries using psql command from bash shell?

    2 mrt. 2015 · I need to execute postgresql queries from command line using psql -c command. For every psql command, it opens a new tcp connection to connect to the database server and execute query …

  9. postgresql - How to use the psql command to list, create, use and ...

    22 nov. 2016 · 25 I'm a postgreSQL newbie and I can't find any usable introduction to using the psql command. At least I think that's the command I want to use. Is it possible in postgreSQL to simply …

  10. PostgreSQL: Why psql can't connect to server? - Stack Overflow

    19 mrt. 2019 · I typed psql and I get this: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgr...