About 50 results
Open links in new tab
  1. Run PostgreSQL queries from the command line - Stack Overflow

    Jul 17, 2025 · Open "SQL Shell (psql)" from your Applications (Mac). Click enter for the default settings. Enter the password when prompted. *) Type \? for help *) Type \conninfo to see which user you are …

  2. How to run SQL in shell script - Stack Overflow

    How do you run a SQL command in a shell script while setting a variable? I had tried this method and it isn't executing the command, it is thinking the command is just a string. #!/bin/ksh variab...

  3. sql - How to change display language in psql shell? - Stack Overflow

    Jan 4, 2020 · How to change display language in psql shell? [duplicate] Asked 6 years, 1 month ago Modified 6 years, 1 month ago Viewed 8k times

  4. Connect to sqlplus in a shell script and run SQL scripts

    Oct 1, 2024 · 42 I have a .sql file, which is a bunch of oracle pl/sql commands and I want to create a shell script to run these commands. Suppose that user/pass@server is my credentials. What will be …

  5. SQL Shell (psql) Defaulting to Port 5433 Instead of 5432 on Windows

    Dec 23, 2024 · However, when I open the SQL Shell (psql), it defaults to port 5433, as shown in the screenshot below: default value is 5433 Steps I Took to Resolve: Verified the postgresql.conf file …

  6. Add SQL Shell (psql) (postgres) to Windows Terminal

    Aug 5, 2020 · I'm trying to add a new terminal Postgres shell (psql) to the Windows Terminal. I want to add it to the profiles list in the settings. This is the windows terminal. In the settings file, we can ad...

  7. Connect to SQL Server Database from PowerShell - Stack Overflow

    Sep 5, 2014 · SQL Server Management Studio 2012 isn't a "version of SQL" - it's an application that can connect to and manage SQL Server, and it can connect to any version of SQL Server from 2000 …

  8. How to execute a .sql file using PowerShell - Stack Overflow

    I have a .sql file. I am trying to pass connection string details through a PowerShell script and invoke a .sql file. I was searching and came up with a cmdlet related to Invoke-Sqlcmd. While I was

  9. mysql - How to export and import a .sql file from command line with ...

    Jul 10, 2012 · I want to export and import a .sql file to and from a MySQL database from command line. Is there any command to export .sql file in MySQL? Then how do I import it? When doing the …

  10. How to use the \i command in SQL-Shell? - Stack Overflow

    Aug 2, 2020 · I'm new to PostgreSQL and I wanted to use or run a specific file on the SQL-Shell on windows but I`m getting some errors of what I think is not making sense from my knowledge. I ran …