oracle sqlplus执行sql文件
来源:互联网 发布:文华财经 mac 编辑:程序博客网 时间:2024/05/17 01:57
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
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/jgchenhunter/archive/2009/01/13/3765526.aspx
- 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文件
- 使用Forms Authentication实现用户注册、登录 (一)基础知识
- ssh
- 使用Forms Authentication实现用户注册、登录 (一)基础知识
- 10G custom创建数据库中安装示例方案(sample schemas)
- 使用Forms Authentication实现用户注册、登录 (一)基础知识
- oracle sqlplus执行sql文件
- .NET ActiveX VCL控件仓库
- G7相关
- 2010年9月21日写给儿子的话
- Caused by: org.hibernate.QueryException: could not resolve property
- Oracle中如何用一条SQL快速生成10万条测试数据(转)
- RECT的简明解释
- 和对手过招----船长事件
- Asp.net中基于Forms验证的角色验证授权