About 50 results
Open links in new tab
  1. Execute SQL script from command line - Stack Overflow

    providing a file name containing all my SQL queries is much more handy than providing the SQL query as command-line arguments.

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

    Jul 17, 2025 · But I face few issues sometimes such as if the column name is similar to any reserved keyword of postgresql such as natural in this case similar SQL is difficult to run from the command …

  3. command line - How to run SQL script in MySQL? - Stack Overflow

    Jan 20, 2012 · From Workbench: File > Run SQL Script -- then follow prompts From Windows Command Line: Option 1: mysql -u usr -p mysql> source file_path.sql Option 2: mysql -u usr -p '-e …

  4. sql - How do you run a single query through mysql from the command …

    You can execute SQL statements in a script file (batch file) like this: shell> mysql db_name < script.sql > output.tab Put the query in script.sql and run it.

  5. How to I run a single sql command from the sqlcmd prompt?

    In SQL Server, if I want to run a script from the command line, I can do this

  6. How can I issue a single command from the command line through sql …

    Mar 12, 2009 · But is it possible to just run a single command with a similar syntax, without a whole separate script file? As in: c:\>sqlplus username/password@databasename @execute …

  7. how to execute SQL statements in command prompt (CMD)

    Jan 7, 2014 · 12 You are looking for the sqlcmd utility lets you enter Transact-SQL statements, system procedures, and script files at the command prompt

  8. sql - sqlplus statement from command line - Stack Overflow

    Just be aware that on Unix/Linux your username/password can be seen by anyone that can run "ps -ef" command if you place it directly on the command line . Could be a big security issue (or turn into a …

  9. Run a PostgreSQL .sql file using command line arguments

    Mar 16, 2012 · Run a PostgreSQL .sql file using command line arguments Asked 13 years, 11 months ago Modified 1 year, 2 months ago Viewed 1.4m times

  10. How to connect to MySQL from the command line - Stack Overflow

    How can you connect to MySQL from the command line in a Mac? (i.e. show me the code) I'm doing a PHP/SQL tutorial, but it starts by assuming you're already in MySQL.