I want create new table in oracle with sqlplus and batch file.
sqlplus user/password @create_tables.sql
it is successfully
but that's not what I want. I want the user to input year. My batch file look like :
@echo off
set /p year=__YEAR (YYYY)?
sqlplus user/password
create table data%year%
(Nama varchar2(25),
value number);
echo Successfull
pause
script stops here
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>
what's wrong?