首页 > 数据库 >How to make sqlplus output appear in one line

How to make sqlplus output appear in one line

时间:2023-07-26 09:50:20浏览次数:56  
标签:SET appear linesize make How sqlplus LINESIZE output line

How to make sqlplus output appear in one line

https://dba.stackexchange.com/questions/54149/how-to-make-sqlplus-output-appear-in-one-line
# SQL*Plus User's Guide and Reference
http://docs.oracle.com/cd/E16655_01/server.121/e18404/ch_twelve040.htm#BACGAJIC


SET LINESIZE linesize   
-- linesize can be 1 through 32767

The following sqlplus commands maybe usefull:

SET LINESIZE linesize the length of the line. In most cases the maximum value for linesize is 32767. You can find out your maximum value if you set LINESIZE to an invalid value and check the error message so SET LINESIZE 0 may give SP2-0267: linesize option 0 out of range (1 through 32767) (1)
SET TRIMSPOOL ON otherwise every line in the spoolfile is filled up with blanks until the linesize is reached.
SET TRIMOUT ON otherwise every line in the output is filled up with blanks until the linesize is reached.
SET WRAP OFF Truncates the line if its is longer then LINESIZE. This should not happen if linesize is large enough.
SET TERMOUT OFF suppresses the printing of the results to the output. The lines are still written to the spool file. This may accelerate the exectution time of a statement a lot.
SET PAGESIZE 0 to set an infinite pagesize and avoid headings , titles and so on.
There are some other SET parameters concerning output (NUMWIDTH, NUMFORMAT, LONG, COLSEP) and performance (ARRAYSIZE, LONGCHUNKSIZE).

CHR(13) for CR (Carriage Return), CHR(10) for LF: Line Feed

CHR(13) CR \r
CH(10) LF \n

User || to connect String in PLSQL

标签:SET,appear,linesize,make,How,sqlplus,LINESIZE,output,line
From: https://www.cnblogs.com/chenjo/p/17581605.html

相关文章

  • 使用show effective grants查看权限
    1、问题描述用户showgrants显示只有连接权限,但该用户却能执行sbtest.*下的所有操作GreatSQL>\s...Serverversion:8.0.32-24GreatSQL,Release24,Revision3714067bc8c...GreatSQL>showgrants;+---------------------------------------+|Grantsforuser1@1......
  • Cmake入门
    构建一个最简单的Cmake demo。其中最基础的三个命令是:cmake_minimum_required()project()add_executable()哪怕只有这三个命令都可以 构成一个CMake工程。下面介绍下命令地用法:cmake_minimum_required()cmake_minimum_required(VERSION<min>[...<policy_max>][F......
  • How to Restore ASM Based OCR After Complete Loss of the CRS Diskgroup on Linux/U
    InthisDocumentGoalSolutionReferencesAPPLIESTO:OracleDatabase-EnterpriseEdition-Version11.2.0.1.0andlaterOracleDatabaseCloudSchemaService-VersionN/AandlaterGen1ExadataCloudatCustomer(OracleExadataDatabaseCloudMachine)......
  • CMake Error at CMakeLists.txt: No CMAKE_CXX_COMPILER could be found.
    系统环境:Ubuntu22.04.11.问题发生--TheCcompileridentificationisGNU11.3.0--TheCXXcompileridentificationisunknown--DetectingCcompilerABIinfo--DetectingCcompilerABIinfo-done--CheckforworkingCcompiler:/usr/bin/cc-skipped--......
  • Tool-CMake-添加自定义宏定义
    Tool-CMake-添加自定义宏定义cmake,makefile中定义的宏变量,其实和C/C++中的#define是一致的,可以传入到C/C++中。控制程序的编译比如:cmake中有宏定义:add_definitions(-Dhello="hellocmake")......
  • 【Boost】CMake中引用Boost库
    概述在macOS开发时常常使用Boost库,若项目使用CMake进行组织管理和编译,需要掌握在CMake中实现Boost库的引用的基本语法。本片博客结合自己在实际使用过程中的经验进行总结,以期回顾和进行阶段总结。CMakeLists.txt编写find_package通过调用find_package可以找到头文件和所需要的......
  • 【Boost】Windows端使用 MSVC14.2 编译 Boost 并在 CMake 项目中使用
    Write2023.7.24关于boost在Windows下的使用gcc安装与CLion的配置,能够查到的英文资料都比较少,踩过坑后记录一下。MinGW安装BoostBoostDownload:https://www.boost.org/users/download/下载并解压在某个没有中文路径下的目录中在开始编译操作之前请把gcc添......
  • mac在本地docker启动mysql提示chown: changing ownership of '/var/lib/mysql': O
    解决mac在本地docker启动mysql提示chown:changingownershipof'/var/lib/mysql':O问题介绍在使用Docker在本地启动MySQL时,有时会遇到权限问题,导致出现chown:changingownershipof'/var/lib/mysql':O的错误提示。这篇文章将向您展示如何解决这个问题,并为您提供了一些代码......
  • cmake学习之-嵌套式cmake
    注意,此贴只是记录学习所得,并不是教程本人的帖子项目中会有很多cmake嵌套使用的情况总分式嵌套cmake的父子关系注意的式父节点的定义可以在子节点中使用,儿子节点只能在自身使用,称为继承1.顶层cmake的寻找方法add_subdirectory(子节点对应文件目录、、),其中只有第一个参数我......
  • cmake学习之-宏定义
    cmake的宏定义学习cmake的宏定义是用来添加c文件中的ifdef的,宏定义添加方法1.在编译的时候添加,如上图所示,注意要-D作为标注2.add_definitions若要定义多个宏,可以宏和宏之间用空格,或者换行写......