龙一军 2011-11-23 17:30
浏览 747
已采纳

请解释一下plsql中的/*+APPEND*/的意思

[code="java"]DECLARE
N NUMBER(3,0);
BEGIN
dbms_output.put_line('start baking.......');
DELETE FROM DEPTBACK;
INSERT /* +APPEND / INTO DEPTBACK SELECT * FROM DEPT;
SELECT COUNT(
) INTO N FROM DEPT;
DBMS_OUTPUT.PUT_LINE('处理数据 '||N||' 条');
dbms_output.put_line('end baking.........');
END;[/code]
看到这样一段代码, /* +APPEND */ 是什么意思啊,没找着答案。

  • 写回答

4条回答 默认 最新

  • huoyj 2011-11-23 20:30
    关注

    The APPEND hint lets you enable direct-path INSERT if your database is running in serial mode. Your database is in serial mode if you are not using Enterprise Edition. Conventional INSERT is the default in serial mode, and direct-path INSERT is the default in parallel mode.
    In direct-path INSERT, data is appended to the end of the table, rather than using existing space currently allocated to the table. As a result, direct-path INSERT can be considerably faster than conventional INSERT.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换