批处理返回Oracle的表数据

bat:

@ECHO OFF
GOTO choice
:choice
ECHO ===============
ECHO 选择要查询的系统
ECHO 1.准生产集中
ECHO 2.准生产两融
ECHO 3.准生产一柜通
ECHO 4.仿真集中
ECHO 5.仿真两融
ECHO 6.仿真一柜通
ECHO ===============
SET /p a=输入数字:
IF %a%==1 GOTO 1
IF %a%==2 GOTO 2
IF %a%==3 GOTO 3
IF %a%==4 GOTO 4
IF %a%==5 GOTO 5
IF %a%==6 GOTO 6
ECHO 输入数字1-6
GOTO choice
:1
SET /p p=准生产集中-输入版本:
sqlplus system/password@ORCL @aboss.sql %p% > version.txt
TYPE version.txt
GOTO 1
:2
SET /p p=准生产两融-输入版本:
sqlplus system/password@ORCL @aboss.sql %p% > version.txt
TYPE version.txt
GOTO 3
:3
SET /p p=准生产一柜通-输入版本:
sqlplus system/password@ORCL @ygt.sql %p% > version.txt
TYPE version.txt
GOTO 3
:4
SET /p p=仿真集中-输入版本:
sqlplus system/password@ORCL @aboss.sql %p% > version.txt
TYPE version.txt
GOTO 4
:5
SET /p p=仿真两融-输入版本:
sqlplus system/password@ORCL @aboss.sql %p% > version.txt
TYPE version.txt
GOTO 5
:6
SET /p p=仿真一柜通-输入版本:
sqlplus system/password@ORCL @ygt.sql %p% > version.txt
TYPE version.txt
GOTO 6

sql:

select * from aboss.tprocver where version='&1';
exit
posted @   孙犯困  阅读(38)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 零经验选手,Compose 一天开发一款小游戏!
· 因为Apifox不支持离线,我果断选择了Apipost!
· 通过 API 将Deepseek响应流式内容输出到前端
点击右上角即可分享
微信分享提示