About 714,000 results
Open links in new tab
  1. How to run SQL in shell script - Stack Overflow

    Oct 4, 2013 · 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.

  2. Shell Script to Perform Database Operations - GeeksforGeeks

    Jan 30, 2023 · In this article, we have seen how to create a shell script to perform various database operations using the MySQL database management system. We have created …

  3. How to Run SQL Query Using Bash Script and Command-Line?

    Aug 3, 2024 · In this blog post, we have read how to use a Unix shell script to connect to the database and execute a SQL query. We also learn how to pass variables to SQL queries …

  4. ORACLE-BASE - Oracle Shell Scripting

    This article presents some basic techniques for creating Windows batch files and UNIX/Linux shell scripts that connect to SQL*Plus and RMAN. To run a SQL script using SQL*Plus, place the …

  5. How to write a shell script to run a sql query and send the query ...

    Dec 3, 2022 · I need to run a SQL query using SHELL script in PUTTY and send the results in email body in table format with headers along with a message line on top. I have written this …

  6. Streamlining Database Operations: Running SQL Queries from a Shell Script

    You can run SQL queries from a shell script using command-line database clients like mysql, sqlite3, psql (PostgreSQL), or sqlcmd (Microsoft SQL Server). These clients enable you to …

  7. MySQL: Run Query from Bash Script or Linux Command Line

    Dec 27, 2016 · How to connect to MySQL database and run SQL query from the Linux command-line (execute query from shell) or Bash script.

  8. Executing an SQL Script From the Command Line - Baeldung

    Apr 20, 2024 · Executing .sql scripts from Bash can be a useful way to automate database management tasks or migrate data from one server to another. In this tutorial, we’ll discuss …

  9. Introduction to Bash Scripting for SQL Server DBAs

    Nov 6, 2018 · Bash scripting is not limited to just writing a set of commands into a text file. It has all the features of any procedural language that we need to use in order to write more complex …

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

    Oct 1, 2024 · 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 …

  11. Some results have been removed
Refresh