Skip to content

Instantly share code, notes, and snippets.

@nobuhito
Created December 29, 2012 01:06
Show Gist options
  • Save nobuhito/4403657 to your computer and use it in GitHub Desktop.
Save nobuhito/4403657 to your computer and use it in GitHub Desktop.
SQLをバッチファイル一つで実行
set SQL=select sysdate from dual;
@echo off
echo %SQL% > sql.sql
echo exit >> sql.sql
sqlplus XXXX/XXXX@XXXX @sql.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment