Discussions
Categories
- 196.7K All Categories
- 2.2K Data
- 235 Big Data Appliance
- 1.9K Data Science
- 449.8K Databases
- 221.6K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 549 MySQL Community Space
- 477 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 532 SQLcl
- 4K SQL Developer Data Modeler
- 186.9K SQL & PL/SQL
- 21.3K SQL Developer
- 295.4K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.1K Development Tools
- 104 DevOps
- 3.1K QA/Testing
- 645.9K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 153 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 158 Java 8 Questions
- 85.9K Java Programming
- 79 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.2K Java SE
- 13.8K Java Security
- 203 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 395 LiveLabs
- 37 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.6K Other Languages
- 2.3K Chinese
- 170 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 230 Portuguese
Varchar2 gets converted to DATE in EXCEL
Hi,
I have a report that outputs data to EXCEL format (spreadsheet). I have columns (ROOM and STORAGE AREA) that are declared as VARCHAR2 in the database.
Query from report:
SELECT vs.BSE_NAME BASE
, LTRIM (vs.bld_no) BUILDING_NUMBER
, LTRIM (vs.bld_name) building
, LTRIM (DECODE (:p_language
, 'F', vs.rnm_name_fre
, vs.rnm_name_eng) ) room
, LTRIM (vs.rom_room_no) ROOM_NUMBER
, LTRIM (DECODE (:p_language
, 'F', vs.san_name_fre || ' ' || vs.sar_no
, vs.san_name_eng || ' ' || vs.sar_no) ) STORAGE_AREA
, LTRIM (vs.sar_no) STORAGE_AREA_NUMBER
, (SELECT COUNT(*)
FROM SAR, HLD
WHERE SAR.SAR_ID = HLD.SAR_ID
AND SAR.SAR_ID = vs.sar_id) count_of_hmra
FROM v_storage_areas vs
, loc l
, frm f
, unt u
, sec s
, snm sn
WHERE vs.loc_id = l.loc_id
AND vs.FRM_ID = f.FRM_ID
AND vs.UNT_ID = u.UNT_ID
AND vs.SEC_ID = s.SEC_ID
AND sn.SNM_ID = s.SNM_ID
When I execute this command in Sqlpplus:
When I look at the EXCEL file, the ROOM_NUMBER is converted to DATE... WHY?
Comments
-
Hello,
What is the version of Oracle Reports?
In Oracle Reports you have "Format mask" based on the "Source" type. Use the Format mask to preserve the field format.
Thanks, Suresh
-
Hi,
I have Oracle Reports Builder 12.2.
I use the field name, from my QRY (Select statement) for the Source. All the COLUMN information comes from the database:
I can not select the FORMAT option when I set the source to a field name that is in my select qry...
Cheers,
Marc L