About 633,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. 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 …

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

  4. How do you execute SQL from within a bash script?

    If you want to be able to pass data into your scripts you can do it via SQLPlus by passing arguments into the script: Contents of file-with-sql-1.sql. select * from users where …

  5. Shell Script to Perform Database Operations - GeeksforGeeks

    Jan 30, 2023 · How to Open a Database in SQL Server? In this article, we will be creating a shell script to perform various database operations. We will be using the MySQL database …

  6. How To Use Oracle / MySQL SQL Commands In UNIX Shell Scripts

    Jan 29, 2010 · Explains how to call Oracle or MySQL/MariaDB/PostgreSQL database SQL and dba statements using UNIX or Linux ksh, sh or bash shell scripts.

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

    Apr 20, 2024 · In this article, we discussed how to execute a .sql script for MySQL from the Bash command line. First, we looked at the steps to connect to a MySQL server and also explored …

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

  9. Connecting SQL Server using Sqlcmd and Bash Script

    Dec 18, 2024 · It is a command-line utility for ad hoc, interactive execution of Transact-SQL statements and scripts and for automating Transact-SQL scripting tasks. To use sqlcmd …

  10. Howto: Use mysql or run mysql queries from shell script

    Jan 29, 2007 · How do I use mysql in Shell Scripts? A. I recommend using Perl or php as it is easier to get data from mysql. You can easily use APIs. BASH/KSH Shell does not provide …

  11. Some results have been removed
Refresh