0

I need to call another sql file within an sql file using sql plus. This si the script i have so far and its not working. I have to code it in a unix vi file. I am new to this so would someone mind helping. thank you in advance.

 call=`$LIVE_SQL/sqlfile2.sql`
 if  &call = 0  then
   echo "ERROR: $LIVE_SQL/sqlfile2.sql file not found"
   exit 1
 fi

1 Answer 1

0

The command to call other SQL files from within SQLPLUS is : start (or @)

Getting feedback from the SQL script : SQLPLUS is not Bash. It is possible, but not really beginner stuff.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.