ファイルoracle
と一緒sqlplus
に新しいテーブルを作成したい。batch
sqlplus user/password @create_tables.sql
それは成功した
しかし、それは私が望むものではありません。ユーザーに年を入力してもらいたい。私のバッチファイルは次のようになります:
@echo off
set /p year=__YEAR (YYYY)?
sqlplus user/password
create table data%year%
(Nama varchar2(25),
value number);
echo Successfull
pause
スクリプトはここで停止します
SQL*Plus: Release 10.2.0.1.0 - Production on Sun Aug 25 06:07:26 2013
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL>
どうしたの?