About 985,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 · 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 …

  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 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 …

  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, 9 months ago Modified 1 year ago Viewed 1.4m times

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

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

    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.

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

  9. 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 …

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