Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

batch file to insert table

$
0
0
Hi everyone,

I'm new to creating batch file. I want to create batch file to insert data from table to another table. Here is the sql statment:

insert into DEPT_HR(DEP_NO,DEPT_NAME,TOPMANAGER_NAME)
select DEP_NO,DEPT_NAME,TOPMANAGER_NAME from DEPARTMENT



and what I wrote in the batch file is:

@ECHO OFF
echo.
echo.
SET /P uname=Username:
echo.
echo.
SET /P pass=Password:
echo.
echo.
SET /P mydatabase=Database:
echo.
echo.
set oracle_sid=ins

Could anybody help??

Viewing all articles
Browse latest Browse all 13329

Trending Articles