Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2013
    Posts
    1

    Unhappy Unanswered: batch file to insert table

    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??

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •