EXCEL preventing large numbers being displayed in scientific notation [message #475104] |
Mon, 13 September 2010 01:08 |
raviraja
Messages: 1 Registered: September 2010 Location: Sydney
|
Junior Member |
|
|
Here is one way to create EXCEL file from oracle sql query and
prevent excel displaying large numbers in scientific notation(exponential notation)
set feedback off
set verify off
set heading off
spool c:\excel_test.xls
select 'PO_NUMBER'||chr(9)||'VENDOR_NUMBER' from dual
union
select '=PROPER('||po_number||')'||chr(9)||'=PROPER('||vendor_number||')'||chr(9)
from invoices
where rownum < 12
order by 1 desc
Note that PO_NUMBER is 16 characters, VENDOR_NUMBER is 15 characters in invoices table.
|
|
|
|