免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4189 | 回复: 6
打印 上一主题 下一主题

请问ziggler,PL/SQL Developer怎么export出数据? [复制链接]

论坛徽章:
0
1 [报告]
发表于 2009-09-02 16:09 |显示全部楼层
给你个图。TOOL/EXPORT TABLES

选择要导出的表,打开SQL INSERT标签。

如果需要我给你把MANUAL发上来,在131页。

[ 本帖最后由 ziggler 于 2009-9-2 16:52 编辑 ]

sql_insert.JPG (19.3 KB, 下载次数: 47)

sql_insert.JPG

Manual.pdf

2.59 MB, 下载次数: 60

论坛徽章:
0
2 [报告]
发表于 2009-09-02 16:51 |显示全部楼层

回复 #2 TOADLover 的帖子

This export method creates a standard SQL script with insert statements and (optionally) DDL
statements to recreate the table definition. The tab page contains the following options:
· Drop tables – The generated SQL script contains statements to drop the tables before they are
recreated and loaded. The Create tables, Truncate tables, and Delete records options are disabled
in this situation, and have an implicit value.
· Create tables – The generated SQL script contains statements to create the tables before they are
loaded. This includes constraints, indexes and grants.
· Truncate tables – The generated SQL script uses truncate table statements to empty the tables
before they are loaded. This option is faster than the Delete tables, but cannot be used if foreign
key constraints exist.
· Delete records – The generated SQL script uses delete statements to empty the tables before they
are loaded.
· Disable triggers – The generated SQL script disables all triggers of the tables before they are
loaded, and enables them afterwards. This can improve performance, and can sometimes be
necessary if the triggers contain checks that are not applicable to the import process.
· Disable foreign key constraints – The generated SQL script disables all foreign keys of the tables
before they are loaded, and enables them afterwards. This can be necessary for self-referencing
foreign keys. Foreign keys between different tables will not lead to conflicts, because the tables
are exported in a correct order. Disabling foreign keys can also improve performance.
· Include storage – The generated SQL includes the original storage information such as tablespace
names and initial sizes for table creation statements. These may differ across databases, so this
may not always be appropriate.
· Include privileges – The generated SQL includes the grants of the object privileges to other users
and roles. When the objects are recreated in a different database, these users and roles need to
exist for obvious reasons.
· Commit every – Controls how many records will be inserted in the generated SQL script before a
commit is executed. If this value is zero, all inserts will be committed at once at the end of the
SQL script. For large export files and small rollback segments it will be necessary to supply an
appropriate value here.
· Where clause – Only records that match the where claus

论坛徽章:
0
3 [报告]
发表于 2009-09-02 16:56 |显示全部楼层
This export method creates a standard SQL script with insert statements and (optionally) DDL
statements to recreate the table definition. The tab page contains the following options:
· Drop tables – The generated SQL script contains statements to drop the tables before they are
recreated and loaded. The Create tables, Truncate tables, and Delete records options are disabled
in this situation, and have an implicit value.
· Create tables – The generated SQL script contains statements to create the tables before they are
loaded. This includes constraints, indexes and grants.
· Truncate tables – The generated SQL script uses truncate table statements to empty the tables
before they are loaded. This option is faster than the Delete tables, but cannot be used if foreign
key constraints exist.
· Delete records – The generated SQL script uses delete statements to empty the tables before they
are loaded.
· Disable triggers – The generated SQL script disables all triggers of the tables before they are
loaded, and enables them afterwards. This can improve performance, and can sometimes be
necessary if the triggers contain checks that are not applicable to the import process.
· Disable foreign key constraints – The generated SQL script disables all foreign keys of the tables
before they are loaded, and enables them afterwards. This can be necessary for self-referencing
foreign keys. Foreign keys between different tables will not lead to conflicts, because the tables
are exported in a correct order. Disabling foreign keys can also improve performance.
· Include storage – The generated SQL includes the original storage information such as tablespace
names and initial sizes for table creation statements. These may differ across databases, so this
may not always be appropriate.
· Include privileges – The generated SQL includes the grants of the object privileges to other users
and roles. When the objects are recreated in a different database, these users and roles need to
exist for obvious reasons.
· Commit every – Controls how many records will be inserted in the generated SQL script before a
commit is executed. If this value is zero, all inserts will be committed at once at the end of the
SQL script. For large export files and small rollback segments it will be necessary to supply an
appropriate value here.
· Where clause – Only records that match the where clause will be exported. The where clause must
%0

论坛徽章:
0
4 [报告]
发表于 2009-09-03 08:51 |显示全部楼层

回复 #6 TOADLover 的帖子

我一般数据量少喜欢用这种方式,尤其是代码表这样的东西。

我总觉的SQL脚本比较可靠。

论坛徽章:
0
5 [报告]
发表于 2009-09-03 09:07 |显示全部楼层

回复 #8 TOADLover 的帖子

如果是生产系统的话,数据库的补丁都应该搞成SQL语句,这样最好。

论坛徽章:
0
6 [报告]
发表于 2009-09-03 09:28 |显示全部楼层

回复 #10 TOADLover 的帖子

有点发散。^_^

论坛徽章:
0
7 [报告]
发表于 2009-09-03 09:51 |显示全部楼层

回复 #12 山野村夫 的帖子

SQL脚本,我喜欢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP