Name
SET TRIMSPOOL — Not available in iSQL*Plus
Synopsis
The TRIMSPOOL setting controls whether SQL*Plus writes trailing spaces when spooling data to a file. The default setting is OFF, which causes SQL*Plus to write each line to the spool file in its entirety, trailing spaces and all.
Syntax
SET TRIMS[POOL] {ON | OFF}Parameters
- SET TRIMS[POOL]
Is the command, which may be abbreviated SET TRIMS.
- ON
Causes SQL*Plus to trim any trailing spaces from each line before it is written to the spool file.
- OFF
Causes SQL*Plus to write all characters of a line to the spool file, even the trailing spaces. This is the default setting.
If you are spooling data to a file to load it into another program, you may want to leave TRIMSPOOL ON. Otherwise, the program reading the spool file might return errors because the records are shorter than expected.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access