oracle sqlplus执行sql文件
来源:互联网 发布:颐高数码广场数据恢复 编辑:程序博客网 时间:2024/05/17 04:55
Oracle执行外部文件:
c:>sqlplus user/pwd@db
sql>@new.sql
执行多个sql文件:
1.把所有的文件都放在同一个目录下,然后在命令行里执行命令:
c:>dir/b > d:/1.sql
会把所有的sql文件名都输出到一个sql文件中。
2.用UltraEdit打开生成的sql文件,alt+C切换到column mode,给所有的行前都添加一个“@”,保存。
3.在sqlplus中执行“@d:/1.sql”
如何避免'&'字符:
sql中&可以传递参数,但有时需要插入'&',例:
SQL> select '&hello' v from dual;
输入 hello 的值: hello
原值 1: select '&hello' v from dual
新值 1: select 'hello' v from dual
v
-----
hello
可以使用如下方法避免:
A:
SQL> select chr(38) || 'hello' v from dual;
V
------
&hello
B:
SQL> set define off
SQL> select '&hello' v from dual;
V
------
&hello
- oracle sqlplus执行sql文件
- oracle sqlplus执行sql文件
- oracle sqlplus执行sql文件
- oracle sqlplus执行sql文件
- oracle sqlplus执行sql文件
- Oracle 在Sqlplus 执行sql脚本文件。
- oracle在sqlplus中执行sql文件
- oracle在sqlplus中执行sql文件
- oracle在sqlplus中执行sql文件
- sqlplus 执行*.sql文件
- sqlplus执行SQL文件
- 使用sqlplus 执行*.sql文件
- 使用sqlplus 执行*.sql文件
- Linux sqlplus执行*.sql文件
- Linux sqlplus执行*.sql文件
- 用sqlplus执行sql文件
- Linux sqlplus执行*.sql文件
- Oracle-sqlplus导入sql文件
- 计算24点
- 关于幻方的算法
- 编写一个异常类MyException,再编写一个类Student,该类有一个产生异常的方法public void speak(int m) throws MyException,要求参数m的值大于1000时,方法抛出一个MyException对象。最后编写
- 编程实现SQL Server数据库导入导出操作
- 高亮代码的pdf文档制作
- oracle sqlplus执行sql文件
- new test
- 头疼
- sd 题目
- 几个字符串操作的汇编函数
- lotus表单转换成word文档一句代码搞定
- VMware启动错误信息: The connection to the VMware USB Arbitration Service was unsuccessful
- X-Chian未完成
- Hello World!