Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Command or Script to Make All Cols 10 chars wide in SQL*PLUS

Status
Not open for further replies.

sxschech

Technical User
Jul 11, 2002
1,033
US
Is there a command or script to set the display of all cols in a select statement to 10 chars so that cols that are more than that are truncated? I know that I can change a particular cols, width, but was hoping there is an easy way to do it for all cols without having to specify each one.
 
Yes, sxschech, it's rather weird that if Oracle SQL*Plus has a
Code:
set numwidth 10
(which is the default value), that Oracle SQL*Plus does not have a counterpart "set charwidth 10" command.

Sorry.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
I'm not even sure if this is possible - but could this possibly work in a view?

Fee

The question should be [red]Is it worth trying to do?[/red] not [blue] Can it be done?[/blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top