What is the datatype and precision of Oracle NULL column?

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
Do you know the datatype and precision of Oracle Null column?
It is Varchar2 with 0 as the precision.

SQL> create view test_vw as select null x from dual;

View created.


SQL> desc test_vw
 Name                                      Null?    Type
 ----------------------------------------  -------  --------
 X                                                  VARCHAR2

  1  select table_name, column_name, data_type, data_length
  2  from   user_tab_columns
  3* where  table_name ='TEST_VW'
SQL> /

TABLE_NAME      COLUMN_NAME     DATA_TYPE       DATA_LENGTH
--------------- --------------- --------------- -----------
TEST_VW         X               VARCHAR2                  0

_____________________________________________________________________________________________________________________

A visitor from Kuala lumpur viewed 'Data Pump impdp expdp : SQLFILE option to extract ' 23 mins ago
A visitor from Jakarta viewed 'Oracle SQL Loader Bad file (.bad) Parameter Exampl' 1 hr 3 mins ago
A visitor from Kuala lumpur viewed 'Reset/Modify/alter Oracle sequence nextval, currva' 1 hr 39 mins ago
A visitor from Tokyo viewed 'DBMS_SCHEDULER. Create_job Fails with ORA-06512 OR' 2 hrs 10 mins ago
A visitor from Ballwin viewed 'How to Find out / Check SGA and PGA size of Oracle' 2 hrs 46 mins ago

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-25 All Rights Reserved | Site Map | Contact | Disclaimer