Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set numwidth in the grid output of PL/SQL developer?

I'm running some queries in PL/SQL Developer, and one of the columns in the result has 18-digit numbers. Instead of displaying the entire number in the resulting grid, PL/SQL Developer displays only 15 digits in scientific notation.

I tried to find a way to change this in the preferences of the program, so that I'll see the entire number, just like set numwidth does in SQL*Plus. But my search was futile.

How do I change this setting?

like image 986
Ilya Kogan Avatar asked Oct 31 '10 12:10

Ilya Kogan


People also ask

What is set Serveroutput on in PL SQL?

To redirect messages in the DBMS_OUTPUT message buffer to standard output, specify SET SERVEROUTPUT ON. In this example, the PUT procedure adds partial lines to the DBMS_OUTPUT message buffer. When proc1 runs, because SET SERVEROUTPUT ON is specified, the text stored in the DBMS_OUTPUT message buffer is displayed.

What is Numwidth in Sqlplus?

The NUMWIDTH setting controls the default width used when displaying numeric values.

How do I arrange SQL in SQL Developer?

How do you format your SQL code in SQL Developer? You can press CTRL+F7 (on Windows) to format the SQL code in your current Code Editor window to update the formatting of the code based on any format changes you have made.


1 Answers

You can also set the column format(Using the same table name as above...)

column reference_nr format 99999999999999999999999999999999

Select reference_nr from rss_ing_cc_imp;

REFERENCE_NR

      95209140353000001009592 
      25546980354901372045601 

Or ( new session ) which probably is better:

show numwidth

numwidth 10

Select reference_nr from rss_ing_cc_imp;

REFERENCE_NR

 9.5E+22 
 2.6E+22 

Set numwidth 30

show numwidth

numwidth 30

Select reference_nr from rss_ing_cc_imp;

REFERENCE_NR

   95209140353000001009592 
   25546980354901372045601
like image 163
Anders Avatar answered Sep 22 '22 04:09

Anders