sqlplus跟shell结合的方法
#!/bin/bash
Sqlplus -s scott/tiger<
Set head off
Set feed off
select name from emp where deptno = 30;
exit
EOF
Example:Sqlplus -s scott/tiger < xx.sql
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23562295/viewspace-713488/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23562295/viewspace-713488/