About 450,000 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

    Oct 30, 2013 · So my approach is to write the SQL in separate file and run the SQL file from command line. This has another advantage too. If you have to change the query for a large …

  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 …

  4. How to connect to SQL Server from command prompt with …

    Mar 21, 2014 · Sqlcmd -u username -p password assumes a username & password for the SQL Server already setup Alternatively how can I setup a user account from command prompt? I've …

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

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

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

    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 connect to MySQL from the command line - Stack Overflow

    Feb 27, 2011 · 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.

  8. How can I import an SQL file using the command line in MySQL?

    Jul 10, 2019 · I have a .sql file with an export from phpMyAdmin. I want to import it into a different server using the command line. I have a Windows Server 2008 R2 installation. I placed the …

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

    0 From the mysql man page: 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.

  10. 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