`

set feedback

阅读更多
1。set feedback
有三种方式:
set feedback on
set feedback off
set feedback n
默认的当一条sql发出的时候,oracle会给一个反馈,比如说创建表的时候,如果成功,命令行会返回类似:Table created的反馈,又比如执行一个pl/sql成功的时候,命令行会返回:PL/SQL procedure successfully completed 。当载脚本中运行很多语句的时候,一般将feedback设为off。
set feedback n:当一条sql语句返回n或者大于n行记录的时候,就会有feedback,比如:set feedback 5,当返回记录等于或多于5行的时候会有类似8 rows selected.的反馈.如果返回行少于5则没有此反馈。
2。set termout
有两种形式:
set termout on
set termout off
当设置为set termout off的时候就会忽略sql语句的输出如果这条sql是在脚本中运行的话。也就是说如果命令不在脚本中运行,即使设置为set termout off,仍然会返回sql的结果。
3。set heading
有两种形式:
set heading on
set heading off
Setting the heading specifies whether column headings (names) are printed or not.
设置为set heading off的时候不显示列标题。

工作中遇见,记录一下
分享到:
评论

相关推荐

    从数据库中取变量传递给shell,生成环境变量

    set feedback off; set heading off; set pagesize 0; set linesize 1000; set numwidth 12; set termout off; set trimout on; set trimspool on; spool myshellvar_export.sh select '#!/bin/bash' from dual ...

    itpub.net]summit2

    set feedback on prompt Creating and populating tables and sequences. Please wait. rem Create sequences. rem Starting values for sequences begin at the existing maxima for rem existing primary key ...

    oracle 视图,函数,过程,触发器自动编译脚本

    set feedback off column table_name format a30 spool param.temp select 'alter '||a.object_type||' '||a.owner||'.'||a.object_name ||' compile;' from dba_objects a where a.object_type in('TRIGGER',...

    SQL21日自学通

    SET FEEDBACK ON/OFF353 SET HEADING ON/OFF 353 SPOOL FILENAME/OFF353 START FILENAME354 ED FILENAME354 计算所有的表中的行数354 为多个用户赋予系统权限359 将你的表的权限赋予其它的用户361 在载入数据时解除...

    Oracle数据库基础学习资料整合

    set feedback off prompt Creating The My_employee table. Please wait... create table my_employee ( id number(4) constraint my_employee_id_nn not null, last_name varchar2(25), first_name...

    Oracle SQLPlus导出数据到csv文件的方法

    set feedback off set heading off set newp none set pagesize 0 set linesize 200 set trimout on spool /data/export.csv select t.name||','||t.age||','||t.salary||','||t.email||','||t.title from employee

    21天学习SQL V1.0

    21天学习SQL V1.0.pdf 66 SQL 21 日自学通(V1.0) 翻译人笨猪 ...日期/时间函数............................................................................................................ADD_MONTHS..................

    oracle sqlplus 常用命令大全

    SQL> show all –查看所有68个系统变量值 SQL> show user –显示当前连接用户 SQL> show error –显示错误 SQL> set heading off –禁止输出列标题,默认值为ON SQL> set feedback off –禁止显示最后一行的计数...

    [Oracle] dbms_metadata.get_ddl 的使用方法总结

    注意:在sqlplus里,为了更好的展示DDL,需要设置如下参数: 代码如下:set line 200set pagesize 0set long 99999set feedback offset echo off1)获得表、索引、视图、存储过程、函数的DDL 代码如下:select dbms_...

    Oracle数据库的十种重新启动步骤

    1. 停应用层的各种程序。 2. 停oralce的监听进程: $lsnrctl stop 3. 在独占的系统用户下,备份控制文件: SQL>alter database backup controlfile to trace; 4. 在独占的系统用户下,手工切换重... set feedback off; se

    使用shell测试历史数据样本

    使用shell分析了一些数据有一些时间了,而且分析的数据情况也是基于历史数据,写了个脚本对历史的数据进行一个简单的分析,看看准确率到底... set feedback off spool check_$1.sh select 'ksh 12c.sh'||w||' '||t||'

    oracle使用sql脚本生成csv文件案例学习

    set feedback off; set term off; set pagesize 0; set trimspool on; spool a.csv; select c1_name||’,’||c2_name from dual; select c1||’,’||c2 from tbtest spool off; 您可能感兴趣的文章:把CSV文件导入...

    elec_brushless_dc_motor.zip_As One_SIMULINK_brushless_brushless

    configuration is modeled whereby an inner feedback loop controls current and an outer feedback loop controls motor speed. Speed demand is set by the voltage presented at the Vref pin, 2V corresponding...

    Android代码-Android-Animation-Set

    Android Animation Detailed Tutorial / Android 动画详尽教程       ...English explanation(or readme), Do not click on the title, please click on the tip address ... Ripple Effect / Touch Feedback /

    Robust static output feedback infinite horizon RMPC for linear uncertain systems

    This work studies the problem of static output feedback (SOF) infinite horizon robust model predictive control (RMPC) for linear uncertain systems with input constraints. In contrast with the existing...

    Comments on "Partial Channel Feedback Schemes Maximizing Overall Efficiency in Wireless Networks"

    we arrive at a new observation that the hybrid feedback scheme has exactly the same feedback overhead as the pure opportunistic feedback scheme if the threshold is adaptively set for a target ...

    飞利浦KMZ52芯片介绍

    measurement with current feedback loops to generate outputs that are independent of drift in sensitivity. The orientationofsensitivitymaybesetorchanged(flipped)by means of the integrated set/reset ...

    Chaos and Fractals New Frontiers of Science (Springer 2nd Edition).part2.rar

    Topics covered: Overview of fractals and chaos theory, feedback and multiple reduction copy machines (MRCMs), the Cantor Set, the Sierpinski Gasket and Carpet, the Pascal Triangle, the Koch Curve, ...

    Chaos and Fractals New Frontiers of Science (Springer 2nd Edition).part1.rar

    Topics covered: Overview of fractals and chaos theory, feedback and multiple reduction copy machines (MRCMs), the Cantor Set, the Sierpinski Gasket and Carpet, the Pascal Triangle, the Koch Curve, ...

    Chaos and Fractals New Frontiers of Science (Springer 2nd Edition).part3.rar

    Topics covered: Overview of fractals and chaos theory, feedback and multiple reduction copy machines (MRCMs), the Cantor Set, the Sierpinski Gasket and Carpet, the Pascal Triangle, the Koch Curve, ...

Global site tag (gtag.js) - Google Analytics