I need to call another sql file within an sql file using sql plus

萝らか妹 提交于 2019-12-12 10:22:41

问题


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:


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.



来源:https://stackoverflow.com/questions/27103525/i-need-to-call-another-sql-file-within-an-sql-file-using-sql-plus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!