日期:2014-05-17  浏览次数:20884 次

oracle有些语法看不懂,望大神指点
prompt PL/SQL Developer import file
prompt Created on 2013年3月15日 by CuteUI
set feedback off
set define off
prompt Dropping CK_CFG_SEQ_RANGE...
drop table CK_CFG_SEQ_RANGE cascade constraints;
prompt Creating CK_CFG_SEQ_RANGE...
create table CK_CFG_SEQ_RANGE
( a    NUMBER,
  b    NUMBER,
  c    NUMBER,
  d    NUMBER)
prompt Disabling triggers for CK_CFG_SEQ_RANGE...
alter table CK_CFG_SEQ_RANGE disable all triggers;
prompt Loading CK_CFG_SEQ_RANGE...
insert into CK_CFG_SEQ_RANGE (a,b,c,d)values(1,2,3,4);
insert into CK_CFG_SEQ_RANGE (a,b,c,d)values(1,2,3,4);
insert into CK_CFG_SEQ_RANGE (a,b,c,d)values(1,2,3,4);
...
commit;
prompt 19 records loaded
prompt Enabling triggers for CK_CFG_SEQ_RANGE...
alter table CK_CFG_SEQ_RANGE enable all triggers;
set feedback on
set define on
prompt Done.
基本上是建了个表和插入数据,但是很多地方不看懂set feedback off,
set define off prompt Dropping这些地方看不懂,为什么要这么建表和插入数据,比普通的有什么区别
oracle constraints insert table triggers

------解决方案--------------------
set feedback off
不显示反馈信息  “1行已插入”,大量数据装入时,显示这个也是很浪费资源和时间的。

set define off 
如果你某个字段里面有&字符,插入数据会出错,设置该项后正常。

prompt 是将该行内容打印到屏幕上,方便查看。